I have two custom actions in the execute sequence that set a command line and runs the command line. The commamd I am running executes regedit.exe to extract configuration data from my products registry settings when I am trying to modify, repair or overinstall the product. The initial installation works fine and if I run the Setup.exe again and re-install the application everything works fine.
However, when I run from uninstall programs, I click on REPAIR, I get the UAC dialog and I allow the installation to run with elevated privileges. My installation begins and when it tries to execute the custom action it simply returns a failure.
Now, the installation is running in admin mode, is set to require admin rights and I have told the UAC to allow this installation to run however this custom action to simply run regedit and save a registry entry. I am saving the registry information to a file in the temp folder. Does anyone have any idea as to why this may happen?
Here is the appropriate log file lines of code:
Privilage sections:
MSI (s) (D8:B4) [15:26:21:555]: Adding new sources is not allowed.
MSI (s) (D8:B4) [15:26:21:555]: Using cached product context: machine assigned for product: 523420289DB19804FB75ED7212FAFF2E
MSI (s) (D8:B4) [15:26:21:555]: Using cached product context: machine assigned for product: 523420289DB19804FB75ED7212FAFF2E
MSI (s) (D8:B4) [15:26:21:555]: Package name retrieved from configuration data: 'xxxxxx.msi'
MSI (s) (D8:B4) [15:26:21:555]: Using cached product context: machine assigned for product: 523420289DB19804FB75ED7212FAFF2E
MSI (s) (D8:B4) [15:26:21:555]: Determined that existing product (either this product or the product being upgraded with a patch) is installed per-machine.
MSI (s) (D8:B4) [15:26:21:571]: Note: 1: 2262 2: AdminProperties 3: -2147287038
MSI (s) (D8:B4) [15:26:21:571]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (s) (D8:B4) [15:26:21:571]: User policy value 'AlwaysInstallElevated' is 0
MSI (s) (D8:B4) [15:26:21:571]: Using cached product context: machine assigned for product: 523420289DB19804FB75ED7212FAFF2E
MSI (s) (D8:B4) [15:26:21:571]: Product {02135C65-1BD9-4089-BF57-DE2721AFFFE2} is admin assigned: LocalSystem owns the publish key.
MSI (s) (D8:B4) [15:26:21:571]: Product {02135C65-1BD9-4089-BF57-DE2721AFFFE2} is managed.
MSI (s) (D8:B4) [15:26:21:571]: Running product '{02135C65-1BD9-4089-BF57-DE2721AFFFE2}' with elevated privileges: Product is assigned.
.
.
.
MSI (s) (D8:B4) [15:26:21:555]: MSI_LUA: Credential Request return = 0x0
MSI (s) (D8:B4) [15:26:21:555]: MSI_LUA: Elevated credential consent provided. Install will run elevated
.
.
.
MSI (s) (D8:B4) [15:26:21:680]: MSI_LUA: Setting AdminUser property to 1 because this is the client or the user has already permitted elevation
MSI (s) (D8:B4) [15:26:21:680]: PROPERTY CHANGE: Adding AdminUser property. Its value is '1'.
MSI (s) (D8:B4) [15:26:21:680]: MSI_LUA: Setting MsiRunningElevated property to 1 because the install is already running elevated.
MSI (s) (D8:B4) [15:26:21:680]: PROPERTY CHANGE: Adding MsiRunningElevated property. Its value is '1'.
MSI (s) (D8:B4) [15:26:21:696]: PROPERTY CHANGE: Adding Privileged property. Its value is '1'.
Execution failuire section:
Action start 15:26:22: SetSaveOriginalRegCommandLine10.
MSI (s) (D8:B4) [15:26:22:742]: Doing action: RunCmdLineOriginalSave
Action ended 15:26:22: SetSaveOriginalRegCommandLine10. Return value 1.
MSI (s) (D8:B4) [15:26:22:758]: Creating MSIHANDLE (538) of type 790542 for thread 1716
MSI (s) (D80) [15:26:22:758]: Invoking remote custom action. DLL: C:\Windows\Installer\MSID4CA.tmp, Entrypoint: RunCmdLineWithHiddenWindow
MSI (s) (D80) [15:26:22:805]: Closing MSIHANDLE (538) of type 790542 for thread 1716
Action start 15:26:22: RunCmdLineOriginalSave.
Action ended 15:26:22: RunCmdLineOriginalSave. Return value 3.
Action ended 15:26:22: INSTALL. Return value 3.
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Custom Action Error on Vista in Repair Mode
Started by
jforst
, Dec 15 2006 02:57
1 reply to this topic
Posted 15 December 2006 - 17:42
Is this custom action scheduled for deferred execution in system context? This is required.
Stefan Krüger
InstallSite.org twitter facebook