I have created a MSI project in Installshield and i added my installscript method as custom action for install some support driver items. I am using "LaunchAppAndWait" method for launch the executable file with parameters.
LaunchAppAndWait("C:\\Windows\\System32\\RUNDLL32.exe", szWBW, LAAW_OPTION_WAIT);
szWBW is my parameter string which i am passing to EXE file. When i executing this executable by command line as administrator it is working fine. Without admin priviledges, it will failed.
When i run my MSI setup, this line won't run properly and return the error like "Operation couldn't be completed 0x000007b" error message. So to resolve this problem, i want to run this as administrator. I couldn't find any solution to run this particular line as administrator till now.
I have tried another method also to run the EXE. Created the bat file with the following
cd C:\Windows\System32\
C:\Windows\System32\RUNDLL32.exe szWBW
Then i make this as EXE by converter tools. Call this EXE from Custom Action in my project. This method working fine in EXE setup. Because EXE setup run my EXE with admin priviledges. But MSI not doing this and failed to run properly.
(Note: I must need MSI setup not EXE setup.)
Please anyone give me the solution to solve this.
Thanks in advance.