Loading
*.isu file missing
Hi,

 

I'm using install shield 2011 and created a setup. Everything is working fine, but the uninstall.isu file is missing. Because of this, when we install the same software again, the exiting files are not getting overridden and we still see the same old files in the installed path:

 

Program used:

 

function ProcessBeforeDataMove()

 

STRING svLogFile,szKey;

 

NUMBER nResult;

 

begin

 

InstallationInfo( @COMPANY_NAME, @PRODUCT_NAME, @PRODUCT_VERSION, @PRODUCT_KEY );

 

svLogFile = UNINST_LOGFILE_NAME;

 

nResult = DeinstallStart( svDir, svLogFile, @UNINST_KEY, 0 );

 

if (nResult < 0) then

 

MessageBox( @ERROR_UNINSTSETUP, WARNING );

 

endif;

 

szAppPath = TARGETDIR; // TODO : if your application .exe is in a subdir of TARGETDIR then add subdir

 

if ((bIs32BitSetup) && (bIsShellExplorer)) then

 

RegDBSetItem( REGDB_APPPATH, szAppPath );

 

RegDBSetItem( REGDB_APPPATH_DEFAULT, szAppPath ^ @PRODUCT_KEY );

 

RegDBSetItem( REGDB_UNINSTALL_NAME, @UNINST_DISPLAY_NAME );

 

endif;

 

return 0;

 

end;

 

 

Return values is also "0" from deinstall function, but the isu file is not created.

 

We created the setup in windows 7.

 

Can you please help us on this?

 

Thank you,

 

Jyoti

  • " jothy1611 wrote:

     

    Hi,

     

    I'm using install shield 2011 and created a setup. Everything is working fine, but the uninstall.isu file is missing. Because of this, when we install the same software again, the exiting files are not getting overridden and we still see the same old files in the installed path:

     

    Program used:

     

    function ProcessBeforeDataMove()

     

    STRING svLogFile,szKey;

     

    NUMBER nResult;

     

    begin

     

    InstallationInfo( @COMPANY_NAME, @PRODUCT_NAME, @PRODUCT_VERSION, @PRODUCT_KEY );

     

    svLogFile = UNINST_LOGFILE_NAME;

     

    nResult = DeinstallStart( svDir, svLogFile, @UNINST_KEY, 0 );

     

    if (nResult < 0) then

     

    MessageBox( @ERROR_UNINSTSETUP, WARNING );

     

    endif;

     

    szAppPath = TARGETDIR; // TODO : if your application .exe is in a subdir of TARGETDIR then add subdir

     

    if ((bIs32BitSetup) && (bIsShellExplorer)) then

     

    RegDBSetItem( REGDB_APPPATH, szAppPath );

     

    RegDBSetItem( REGDB_APPPATH_DEFAULT, szAppPath ^ @PRODUCT_KEY );

     

    RegDBSetItem( REGDB_UNINSTALL_NAME, @UNINST_DISPLAY_NAME );

     

    endif;

     

    return 0;

     

    end;

     

     

    Return values is also "0" from deinstall function, but the isu file is not created.

     

    We created the setup in windows 7.

     

    Can you please help us on this?

     

    Thank you,

     

    Jyoti "

     

    Can anyone knows, is there any problem with the functions I used or Installshield 2011 doesn't support the finction deinstallstart to create the isu file?

     

    Jyoti
    Expand Post

Loading
*.isu file missing