Loading
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

  • Community Manager (Flexera Software)

    Perhaps try calling MsiGetProperty to get the value of, say, SETUPEXEDIR?
  • The script i use to get the path is:

     

    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
    Expand Post
  • Community Manager (Flexera Software)

    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?
  • Everything work fine on IS 11.5. But after the upgrade to IS 2008 those part of code do not work same as IS 11.5.

     

    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? "
    Expand Post
  • Community Manager (Flexera Software)

    Correct, the InstallScript-in-MSI architecture changed in InstallShield 12; please see the sticky posts at the top of this forum for links to further details.

Loading
Problem with SOURCEDIR when Upgrading Installshield project to IS 2008.