bwestermann
Pilgrim

execute a BAT file after an installation as an administrator

I have an installation and in the Custom Actions > After Setup Progress Dialog I created an exe which does this

cmd.exe /c "[INSTALLDIR]3264RAsm.bat

inside that bat file it determines if I'm installing on a 32 or 64 bit machine and executes this

c:\windows\system32\regasm.exe /codebase NewWorldServiceEngine.ComInterop.dll /tlb

that c# dll is failing in the installed application.. but if I run that same command as an administrator.. it works fine.   So HOW do I make Installshield do that?    I need to either run that bat file as admin or execute that regasm to register that dll as an admin.

can you please help me?

bill

 

Labels (1)
0 Kudos
1 Reply
varul
Revenera
Revenera

Re: execute a BAT file after an installation as an administrator

Hi Bwestermann,

 

 You can always run the setup as administrator by setting Required Execution level to Administrator under Releases --> setup.exe tab

You can try changing the customactions inscript execution to Deffered execution or deffered execution in system context.

 

https://stackoverflow.com/questions/25913293/run-the-executable-file-as-administrator-in-installshie...

 

https://resources.flexera.com/web/media/documents/install-phase.pdf

0 Kudos