PDA

View Full Version : Starting an EXE via custom action in a MSI Project



langhammer
10-21-2010, 02:19 AM
Hi all,

I'm running a custom action to execute a program, which will register some dll.
See my screenshot, please.

If I start the Installation, the Program is not able to make entries in the Registry caused by the dll (if Windows 7 is used).

If I run the same syntax in the Command-Line (as Administrator) it works fine.

In my Screenshot you can See [INSTALLDIR2] its a property filed by a Installshield Script and is the same like [INSTALLDIR] but without ending "\".

crgacutil.4.exe /appName "dotConnect for Oracle" /installDir "C:\Program Files\.NET ADO for Oracle Devart 5.70.180.0.i1" /i /path "C:\Program Files\.NET ADO for Oracle Devart 5.70.180.0.i1\Devart.Data.Oracle.dll"

Maybee, the custom action stats the crgautil without admin privileges ? What can I do to solve this ?

Note: This action is working fine under Windows XP.

rrinblue22
10-21-2010, 03:46 AM
Try with the custom action's in-script execution set to 'Deferred Execution in System Context'