- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Install script functionality is not working in my client machines
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Thank you its working in admin mode
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Could any one help me out on this please
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
HI,
Thank you so much for the reply . let me try as you said and let you know.
Thanks Again
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Thank you its working in admin mode