Loading
How to make installer to install earlier version

Hi,

in an install script project, how can we let the installer to install earlier version than installed version (a) how to make an installer to downgrade? I am stuck with a pop-up saying "This setup installs an earlier version"

Thanks,.


  • Hi @balaji_ayyanar  ,

     

    When you click on Setup.Rul,you will be able to see two combo-boxes where you can select methods in the editor window.

    • On first combobox select "Before Move Data"
    • On select combobox select "OnUpdateUIBefore"
    • Comment out the below lines:
    • // Check whether the update is older than the currently installed version.

       

      if( nResult = VERSION_COMPARE_RESULT_OLDER ) then

       

      szMsg = SdLoadString( IDS_IFX_ERROR_UPDATE_NOT_APPROPRIATE );

       

      SdSubstituteProductInfo( szMsg );

       

      MessageBox( szMsg, SEVERE );

       

      abort;

       

      endif;//

    Then try out,it will work.I had verified this been working.

     

    Thanks,

    Jenifer

    Expand Post
    Selected as Best
  • Hi @balaji_ayyanar  ,

     

    You can achieve setup downgrade by commenting/removing below lines of code from OnUpdateUIBefore event:The specific event you can find under:

    Behavior and Logic->InstallScript->Setup.rul->Before Move Data->OnUpdateUIBefore

    // Check whether the update is older than the currently installed version.

     

    //if( nResult = VERSION_COMPARE_RESULT_OLDER ) then

     

    //szMsg = SdLoadString( IDS_IFX_ERROR_UPDATE_NOT_APPROPRIATE );

     

    //SdSubstituteProductInfo( szMsg );

     

    //MessageBox( szMsg, SEVERE );

     

    //abort;

     

    //endif;

     

    Hope it helps,

    Thanks,

    Jenifer

    Expand Post
      • Hi @balaji_ayyanar  ,

         

        When you click on Setup.Rul,you will be able to see two combo-boxes where you can select methods in the editor window.

        • On first combobox select "Before Move Data"
        • On select combobox select "OnUpdateUIBefore"
        • Comment out the below lines:
        • // Check whether the update is older than the currently installed version.

           

          if( nResult = VERSION_COMPARE_RESULT_OLDER ) then

           

          szMsg = SdLoadString( IDS_IFX_ERROR_UPDATE_NOT_APPROPRIATE );

           

          SdSubstituteProductInfo( szMsg );

           

          MessageBox( szMsg, SEVERE );

           

          abort;

           

          endif;//

        Then try out,it will work.I had verified this been working.

         

        Thanks,

        Jenifer

        Expand Post
        Selected as Best

Loading
How to make installer to install earlier version