iceman Posted March 10, 2007 Report Share Posted March 10, 2007 Can Environmental Variables (e.g. %HOMEDRIVE%) be used for a Silent Install to a %HOMEDRIVE% drive other than C:? The following scenario actually worked when %HOMEDRIVE% was C:. When %HOMEDRIVE% = H: on a network, no files were installed or written to the INSTALLPATH (e.g. INSTALL.LOG). I was able to run the regular install process successfully to the exact same folder when destination H:\\ICEadmin\ViaMacro was entered. The files that make up the silent install are attached. "text file to automatically respond to the install questions during the installation process" SlashM.txt: INSTALLPATH=%HOMEDRIVE%\ICEadmin\ViaMacroSTARTMENUFOLDR=Delete STARTUP=N LAUNCHNOW=N NOQUICKSTART=Y REBOOT=N LICENSENAME=<my license name> LICENSECODE=xxxx-xxxx-xxxx-xxxx CONFIGFILEPATH=.\SlashM.mcf NOEDITOR=Y NOHELP=Y NOICONS=Y MACROFILEDEST=%HOMEDRIVE%\ICEadmin\ViaMacro I noticed in during my testing that [My Documents] was in an exported mcf file. May the brackets be used in place of the percent signs? Thank you in advance. iceman Quote Link to comment Share on other sites More sharing options...
kevin Posted March 12, 2007 Report Share Posted March 12, 2007 The installer does not recognize or understand the environment variables. You could use a batch file to create the file used during the silent install and have it substitute the environment variables. Something like this: echo INSTALLPATH=%HOMEDRIVE%\ICEadmin\ViaMacro >c:\<somepath>\SlashM.txt STARTMENUFOLDR=Delete >>c:\<somepath>\SlashM.txt STARTUP=N >>c:\<somepath>\SlashM.txt LAUNCHNOW=N >>c:\<somepath>\SlashM.txt NOQUICKSTART=Y >>c:\<somepath>\SlashM.txt REBOOT=N >>c:\<somepath>\SlashM.txt LICENSENAME=<my license name> >>c:\<somepath>\SlashM.txt LICENSECODE=xxxx-xxxx-xxxx-xxxx >>c:\<somepath>\SlashM.txt CONFIGFILEPATH=.\SlashM.mcf >>c:\<somepath>\SlashM.txt NOEDITOR=Y >>c:\<somepath>\SlashM.txt NOHELP=Y >>c:\<somepath>\SlashM.txt NOICONS=Y >>c:\<somepath>\SlashM.txt MACROFILEDEST=%HOMEDRIVE%\ICEadmin\ViaMacro >>c:\<somepath>\SlashM.txt c:\<path>\setup.exe /S /M=c:\<somepath>\SlashM.txt Substitute <path> and <somepath> with actual paths. If the above were in the file InstallME.bat then you would run InstallME.bat to install Macro Express in the home drive. Quote Link to comment Share on other sites More sharing options...
iceman Posted March 12, 2007 Author Report Share Posted March 12, 2007 Thanks a bunch for the installer information and the batch file idea. I really appreciate your quick and thorough responses. You are a big help. iceman Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.