installscript


Limitations of InstallScript “Is(FILE_EXISTS, filename)”?


My InstallScript 2014 project installs our application on a desktop PC or an embedded PC that controls an industrial instrument. The only way to know the difference is the presence of a unique USB device driver on the embedded PC that is used to enable the instrument front panel - there is obviously no front panel on the desktop.
The InstallScript code says
if (IS(FILE_EXISTS, "c:\\windows\\system32\\mydriver.sys")) then
do instrument stuff
else
do desktop stuff
endif;
The file is present on the instrument hard disk in the windows\system32 folder, yet the IS function always returns false.
I don't understand why this would be failing. The installer itself is running with elevated privilege, but examining the contents of Win\Sys32 does not require any special permissions - I can see the file using Windows Explorer.
What am I missing?
Apparently there is "magic" at the file system level that redirects requests between various directories on a 64 bit Windows system.
It seems that all that must be done is
Disable(WOW64FSREDIRECTION);
do stuff
Enable(WOW64FSREDIRECTION);
See Targeting 64 bit operating systems with InstallScript Installations

Related Links

Let Setup.exe return '0'(success) when reinstalling - installshield
Limitations of InstallScript “Is(FILE_EXISTS, filename)”?
InstallScript Reboot after multiple prequisites
InstallScript detect app during upgrade?
InstallShield - Detect USB 3.0 Ports
Execute command line statement in installshield / installscript
InstallScript and machine.config
Need an example of /installfromweb command line switch for Installscript Project Setup.exe
How do you compare versions in InstallScript?
unInstallApplication of InstallShield is not working
How to find if the Installatoion was per user or per machine installation
During uninstallation the dll does not remove from system32 folder
Good resources on InstallScript

Categories

HOME
azure-stream-analytics
jpa
forms
gpu
solver
r-googlesheets
aws-cli
rds
big-o
pearson-correlation
settings
mapbox
google-admin-sdk
mod-security
windows-ce
activecollab
ipmitool
stellar.js
flash-player
do-while
dreamweaver
android-7.0-nougat
sigma.js
selinux
asciidoctor-pdf
parcelable
displaytag
strongname
bulletphysics
bringtofront
zend-debugger
weather
playstation-portable
hard-drive
openwhisk
least-squares
ods
railstutorial.org
laravel-elixir
skylink
postgresql-8.4
android-ibeacon
dapper-simplecrud
procfile
dotnet-httpclient
x-ray
avx
oozie-coordinator
payload
d3-force-directed
shinobi
polyline
cronexpression
omxplayer
custom-lists
webjars
envi
avspeechsynthesizer
cassia
pushbots
jnlua
sciruby
flock
pax-exam
finalbuilder
haskell-warp
rdflib
kubuntu
document-repository
infosphere-spl
cosine-similarity
angular-gettext
viewer
contrast
rcaller
live555
malformedurlexception
tinyxml
qscrollarea
conditionaltagsupport
drupal-nodes
syndicationfeed
artemis
embedded-fonts
modular
hidapi
windows-98
device-width
tree-balancing
lambdaj
hibernateexception
role
fsevents
creole
cdonts
django-paypal
maven-1
wysiwym
httpcookie

Resources

Encrypt Message