cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
BigAlbert
Level 3

MsiInstallProduct InstallUserExit

I'm trying to use MsiInstallProduct to execute Msi installation. Basically, it should be rather simple
[DllImport("msi.dll")]
public static extern int MsiInstallProduct(string packagePath, string commandLine);
I've tried almost any option:
InstallMsi("C:\\MyInstall.msi", "ACTION=INSTALL CLIENTUILEVEL=3")
InstallMsi("C:\\MyInstall.msi", "")
InstallMsi("C:\\MyInstall.msi", "CLIENTUILEVEL=3")

but still, I'm keep having InstallUserExit (1602) as result.

Any guess?
Labels (1)
0 Kudos
(2) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

Is your launcher elevated? I think UAC timeouts or suppressed UAC prompts become cancels, and cancels become a 1602.
0 Kudos
BigAlbert
Level 3

I'm running on WinXp and I'm defined as Administrator on the machine..
0 Kudos