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?
Re: execute a BAT file after an installation as an administrator
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.