Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msi hangs #4

Open
endoleg opened this issue Nov 29, 2022 · 2 comments
Open

msi hangs #4

endoleg opened this issue Nov 29, 2022 · 2 comments

Comments

@endoleg
Copy link

endoleg commented Nov 29, 2022

I tested this:
New-Installer -ProductName "msiNR2" -UpgradeCode '1a73a1be-50e6-4e92-af03-586f4a9d9e82' -Content {
New-InstallerDirectory -PredefinedDirectory "AppDataFolder" -Content {
New-InstallerDirectory -DirectoryName "Testfolder-msiNR2" -Content {
New-InstallerFile -Source c:\1.txt
}
}
} -OutputDirectory c:\Windows\Temp

msi is created

But this new little 36kb msi hangs:
screenshot

Any ideas?
Screenshot2

Windows 10, 21H2
PSVersion 5.1.19041.1682

@adamdriscoll
Copy link
Member

You may want to turn on msi logging to see what's up

msiexec /i "C:\my stuff\package.msi" /l*v "d:\place for logs\package.log"

@endoleg
Copy link
Author

endoleg commented Dec 1, 2022

Here is my log (it turns out, that SRSetRestorePoint API failed, but installation worked):

MSI (s) (98:20) [17:27:55:407]: Machine policy value 'Debug' is 0
MSI (s) (98:20) [17:27:55:407]: ******* RunEngine:
******* Product: c:\Windows\Temp\msiNR2.1.0.x86.msi
******* Action: INSTALL
******* CommandLine: **********
MSI (s) (98:20) [17:27:55:409]: Machine policy value 'DisableUserInstalls' is 0
MSI (s) (98:20) [17:27:55:555]: Note: 1: 2203 2: C:\WINDOWS\Installer\inprogressinstallinfo.ipi 3: -2147287038
MSI (s) (98:20) [17:27:55:557]: Machine policy value 'LimitSystemRestoreCheckpointing' is 0
MSI (s) (98:20) [17:27:55:557]: Note: 1: 1715 2: msiNR2
MSI (s) (98:20) [17:27:55:557]: Note: 1: 2205 2: 3: Error
MSI (s) (98:20) [17:27:55:557]: Note: 1: 2228 2: 3: Error 4: SELECT Message FROM Error WHERE Error = 1715
MSI (s) (98:20) [17:27:55:557]: Calling SRSetRestorePoint API. dwRestorePtType: 0, dwEventType: 102, llSequenceNumber: 0, szDescription: "Installed msiNR2".
MSI (s) (98:20) [17:29:42:813]: The call to SRSetRestorePoint API failed. Returned status: -2147212538. GetLastError() returned: -2147212538
MSI (s) (98:20) [17:29:42:826]: File will have security applied from OpCode.

Thank you very much. On another computer the msi worked in 5 seconds. Thanks you so much for this great Module!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants