Results 1 to 3 of 3

Thread: Migrating from IS12

  1. #1
    Join Date
    Mar 2012
    Posts
    2

    Migrating from IS12

    Hi,

    I have to migrate my Basic-MSI project (compressed msi in a setup.exe)written in IS12. I've thus installed the trial of the premium version of IS12 and got my project converted without any trouble.
    The compilation of the project returns no error.

    Unfortunately the execution runs in an incorrect manner. Indeed I work with the variable SETUPEXEDIR which is not set during the execution.
    Code:
    MsiGetProperty(hMSI, "SETUPEXEDIR", sSetupDir, iSize);
    MessageBox("My path = " + sSetupDir, SEVERE );
    creates a MessageBox with the following message : "My path ="

    Nonetheless other variables such as SOURCEDIR are set correctly.

    I assume my pb comes from the trial version.

    Could someone provide me some help to solve this problem?

    Thanks a lot for your time.

  2. #2
    Join Date
    Jul 2003
    Location
    Austin, TX
    Posts
    4,403
    There was a change to the InstallScript MsiGetProperty function in IS2012 discussed here:

    http://community.flexerasoftware.com...MsiGetProperty

    The easy work around is to set iSize = MAX_STRING; in the line before your MsiGetProperty() call.
    Christopher Painter
    ISWIX, LLC.
    Visit iswix.com for contact information

  3. #3
    Join Date
    Mar 2012
    Posts
    2
    Your solution works perfectly fine.

    Thank you for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •