yafitmayo
06-11-2009, 04:07 AM
My Setup Factory program, I'm running a msi file with command line parameters. Some of the parameters are session variables:
1. %AppFolder%
2. %LangId% (custom session variable)
File.Run("msiexec", "/i \"" .. myMsi .. "\" /passive /norestart ET_LANG_ID=\"" .. SessionVar.Get("%LangId%") .. "\" TARGETDIR=\"" .. SessionVar.Get("%%AppFolder%%") .. "\"", "", "", true);
When I'm running my Setup Factory program in silent mode with an ini file, it seems like the session variables are not read from this file. When I looked at the msi log created, it says:
"Could not access network location %ProgramFilesFolder%\Product Name."
I'm running my program, in silent mode as followed:
MyProg.exe "/S:SetupVar.ini"
Ini file:
[SetupValues]
%AppFolder%=C:\Program Files\Product Name
%LangId%=en
1. %AppFolder%
2. %LangId% (custom session variable)
File.Run("msiexec", "/i \"" .. myMsi .. "\" /passive /norestart ET_LANG_ID=\"" .. SessionVar.Get("%LangId%") .. "\" TARGETDIR=\"" .. SessionVar.Get("%%AppFolder%%") .. "\"", "", "", true);
When I'm running my Setup Factory program in silent mode with an ini file, it seems like the session variables are not read from this file. When I looked at the msi log created, it says:
"Could not access network location %ProgramFilesFolder%\Product Name."
I'm running my program, in silent mode as followed:
MyProg.exe "/S:SetupVar.ini"
Ini file:
[SetupValues]
%AppFolder%=C:\Program Files\Product Name
%LangId%=en