installing msi to variable %systemdrive%
Is it possible to set an msi to be installed to the variable %SYSTEMDRIVE%?
I have made a property INSTALLDIR=%SYSTEMDRIVE%\Apps. This is not working, any idea why?
I have made a property INSTALLDIR=%SYSTEMDRIVE%\Apps. This is not working, any idea why?
0 Comments
[ + ] Show comments
Answers (9)
Please log in to answer
Posted by:
anonymous_9363
15 years ago
It looks like you're trying to use the %SYSTEMDRIVE% environment variable. In WI, such variables only use the '%' sign as a prefix, not as a prefix and suffix. Also, all properties need to be enclosed in square brackets. Next, the trailing backslash is inserted automatically. Thus, you need:
INSTALLDIR=[%SYSTEMDRIVE]Apps
BTW, you should not use the Property table to set this property, as property resolution-ordering is random, so you couldn't guarantee that the SystemDrive property was retrieved before the engine had already tried to resolve INSTALLDIR. Use a 'Set Property' Custom Action.
Lastly, have you looked at using the ROOTDRIVE property?
INSTALLDIR=[%SYSTEMDRIVE]Apps
BTW, you should not use the Property table to set this property, as property resolution-ordering is random, so you couldn't guarantee that the SystemDrive property was retrieved before the engine had already tried to resolve INSTALLDIR. Use a 'Set Property' Custom Action.
Lastly, have you looked at using the ROOTDRIVE property?
Posted by:
Bankeralle
15 years ago
I tried using the following suggestion
INSTALLDIR=[%SYSTEMDRIVE]Apps
This gave me also the same error message: Error 1606 (Could not access networklocation [%SYSTEMDRIVE]\Apps
I also tried with the windowsvaraiable ROOTDRIVE this gave me same error message
You wrote
BTW, you should not use the Property table to set this property, as property resolution-ordering is random, so you couldn't guarantee that the SystemDrive property was retrieved before the engine had already tried to resolve INSTALLDIR. Use a 'Set Property' Custom Action.
Im not sure if i follow you here can you be a mroe specific
INSTALLDIR=[%SYSTEMDRIVE]Apps
This gave me also the same error message: Error 1606 (Could not access networklocation [%SYSTEMDRIVE]\Apps
I also tried with the windowsvaraiable ROOTDRIVE this gave me same error message
You wrote
BTW, you should not use the Property table to set this property, as property resolution-ordering is random, so you couldn't guarantee that the SystemDrive property was retrieved before the engine had already tried to resolve INSTALLDIR. Use a 'Set Property' Custom Action.
Im not sure if i follow you here can you be a mroe specific
Posted by:
anonymous_9363
15 years ago
Posted by:
Bankeralle
15 years ago
Posted by:
Bankeralle
15 years ago
Posted by:
anonymous_9363
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.