Jump to content
Macro Express Forums

Can Environmental Var. Be Used For Silent Install?


iceman

Recommended Posts

Can Environmental Variables (e.g. %HOMEDRIVE%) be used for a Silent Install to a %HOMEDRIVE% drive other than C:? :huh:

 

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). :unsure:

 

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\ViaMacro

STARTMENUFOLDR=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. :D

 

iceman

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...