Loading
Install script functionality is not working in my client machines

Hi,

Using Installshiled 2020 R3

I have made a install script function to Rename a file and run cmd.exe to execute a .bat file in my installed directory that needs to called when installing .

it works fine in my VM , other machine were we have installshield installed 

Not in working in my client machine were they don't have installshield .

MY file Name declaration 

define FILENAME1 "Service.exe.config"

 

define FILENAME2 "web.config"

define FILENAME3 "ConnectionStringEncryptCmd.txt"

 

define FILENAME4 "ConnectionStringEncryptCmd.bat"

 

my function

function MyFunction(hMSI)

 

// To Do: Declare local variables.

 

STRING szProgram,szCmdline;

 

begin

RenameFile(INSTALLDIR+FILENAME1,INSTALLDIR+FILENAME2);

 

RenameFile(INSTALLDIR+FILENAME3,INSTALLDIR+FILENAME4);

szProgram = INSTALLDIR+"\\ConnectionStringEncryptCmd.bat";

szCmdline = SystemFolder+"\\cmd.exe /c";

 

LaunchAppAndWait (szProgram,szCmdline,WAIT|LAAW_OPTION_HIDDEN);

RenameFile(INSTALLDIR+FILENAME2,INSTALLDIR+FILENAME1);

 

DeleteFile(INSTALLDIR+"\\ConnectionStringEncryptCmd.bat");

end;

 

Attached my Custom action as well .

Please can you address on what's wrong with this.

 


  • VArul (Flexera Software)

    Hi @SharmilaP

     IS this script running successfully in your machine only fails in your client machine? 

    Are you running the setup in administrator mode? if not please try to launch the setup with run as administrator and check its working or not.

    Even after running with administrator if its fails to run,  please generate installation verbose log and check the log for customaction status

    Here is a link to documentation about how to generate a verbose Installation log:

    https://community.revenera.com/s/InstallShield-Knowledge-Base/Logging-an-MSI-Installation4323

     

    Expand Post
    Selected as Best
    • VArul (Flexera Software)

      Hi @SharmilaP

       IS this script running successfully in your machine only fails in your client machine? 

      Are you running the setup in administrator mode? if not please try to launch the setup with run as administrator and check its working or not.

      Even after running with administrator if its fails to run,  please generate installation verbose log and check the log for customaction status

      Here is a link to documentation about how to generate a verbose Installation log:

      https://community.revenera.com/s/InstallShield-Knowledge-Base/Logging-an-MSI-Installation4323

       

      Expand Post
      Selected as Best
      • HI,

         

        Thank you so much for the reply . let me try as you said and let you know.

         

        Thanks Again

         

        Expand Post

Loading
Install script functionality is not working in my client machines