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

Install script functionality is not working in my client machines

Jump to solution

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.

 

Labels (1)
0 Kudos
(2) Solutions
varul
Revenera Moderator Revenera Moderator
Revenera Moderator

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.flexera.com/t5/InstallShield-Knowledge-Base/Logging-an-MSI-Installation/ta-p/4323

 

View solution in original post

Thank you its working in admin mode

View solution in original post

0 Kudos
(4) Replies
SharmilaP
Level 3

Could any one help me out on this please

0 Kudos
varul
Revenera Moderator Revenera Moderator
Revenera Moderator

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.flexera.com/t5/InstallShield-Knowledge-Base/Logging-an-MSI-Installation/ta-p/4323

 

HI,

 

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

 

Thanks Again

 

0 Kudos

Thank you its working in admin mode

0 Kudos