Any help is appreciated!
Announcement
Collapse
No announcement yet.
How to execute Microsoft (msi) installer from NSIS installer
Collapse
X
-
This thread should help you figure it out. To get more information about msiexec you should probably search MSDN.NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
-
-
Please stop creating a new thread for every following question you have. It makes things much harder to track.
As the thread linked says you need to use msiexec like this:
ExecWait '"$SYSDIR\msiExec" /i "file.msi"'
ExecShell should probably work too (with no msiExec) but it won't wait for it.NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
Comment
-
-
Nope. A .cpl is not an executable, but rundll32.exe which executes it is. Try this:
ExecWait 'rundll32.exe shell32.dll,Control_RunDLL "$SYSDIR\odbccp32.cpl",'NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
Comment
-
-
Try:
System::Call "shell32::Control_RunDLLA(i $HWNDPARENT, i 0, t '$SYSDIR\odbccp32.cpl', i 5)"
If that doesn't work, try:
System::Call "kernel32::GetModuleHandleA(i 0) i .r0"
System::Call "shell32::Control_RunDLLA(i $HWNDPARENT, i r0, t '$SYSDIR\odbccp32.cpl', i 5)"NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
Comment
-
-
Installing MSI closes other applications
Hi all,
I'm installing a MSI using the following command:
nsExec::Exec 'MsiExec.exe /q /i $TEMP\MSRuntime71.msi' $0
and it works fine except that it is terminating all running applications without alerting the user.
I've searched the Microsoft site:
and also looked at the command instructions, but I'm not sure what is the correct approach to handling this. (Plus the descriptions aren't clear.)
Ideally it would be nice to instruct the user to shut down application X.
Thanks in advance!
Comment
-
Comment