cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Sashikanta
Level 3

Application name change dynamically

Jump to solution
We need to changer the application name dynamically by script of installsheild . Please help me out for the issue .
Labels (1)
0 Kudos
(2) Solutions

Hi @Sashikanta ,

 

Help me with few more details:

  • What type of project you are using?-I could get it is basic msi project from the sample you had added here
    • If Basic MSI-Add the below code:

      function MyFunction(hMSI)
      // To Do: Declare local variables.
      STRING svName;
      begin
      MsiSetProperty(hMSI, "ProductName", "TrailProduct");
      // To Do: Write script that will be executed when MyFunction is called.

      end;

    • Since it is basic MSI project,you have to use hMSI as handle where if it is InstallScript project use ISMSI_HANDLE as MSI handle.
    • Add installscript custom action and add this function name as Function Name argument
    • Sequence it in initial phase:Here you can do Install Exec Sequence->After CostInitialize
  • If it is InstallScript project steps will slightly vary like adding the above code in InstallScript events which you could find under InstallScript view
  • Build and execute it will work(I had verified as well :-))

Thanks,

Jenifer

View solution in original post

Hi Jenifer, 

 

Thank you for the solution. I changed the application name successfully . just one step to my goal is My desktop shortcut name not changed can you help me to change the shortcut name by install shield script. 

 

Thank You 

Wait for your positive reply.  

View solution in original post

0 Kudos
(10) Replies