
thaka761.552494710913437E12 asked a question.
Problem with SOURCEDIR when Upgrading Installshield project to IS 2008.
Hello Everyone!
I have tried to upgrade an InstallShield project created on IS 11.5 to install Shield 2008. I have some install shield custom actions.
When i run this part of script on the first custom action i get the real values
SprintfBox (INFORMATION, "New Source Folder","New Source:&37;s",SRCDIR);
SprintfBox (INFORMATION, "New Source Folder","New Source:%s",SUPPORTDIR);
SprintfBox (INFORMATION, "New Source Folder","New Source:%s",SETUPEXEDIR);
SprintfBox (INFORMATION, "New Source Folder","New Source:%s",SUPPORTDIR);
But when i run the above script on another custom action the value is blank.
I need to have the path of the source.
Tau
MsiGetProperty(ISMSI_HANDLE, "SourceDir", szSourceDir, nvBufferSize);
MessageBox ("SourceDir is:=" + SourceDir, INFORMATION);
MsiGetProperty(ISMSI_HANDLE, "SETUPEXEDIR", szSETUPEXEDIR, nvBufferSize);
MessageBox ("SETUPEXEDIR is:=" + szSETUPEXEDIR, INFORMATION);
The output is the same.
If I use this script on the first custom action I get the right path. Otherwise the values of szSourceDir and szSETUPEXEDIR are blank.
Tau
I think is part of the way how IS 2008 works with global variables, and how IS 2008 works with many custom action.
Tau
" RobertDickau wrote:
When/where in the sequences are you calling this code? As a sanity check, are you setting nvBufferSize to a large value before each call to MsiGetProperty? "