Jump to content

Set MSI creation location


Recommended Posts

Can I, using the command-line, instruct the installer where to place the MSI files it creates?
I don't appear able to. The installer is being run by NT AUTHORITY\SYSTEM so the files it creates are vanishing.
I looked in C:\Windows\System32\Config\SystemProfile but there is no 'Desktop' folder created and the MSIs are not present.
Looking at the program in Process Monitor it is clear the installer places its files in C:\Windows\Temp\PdnSetup but the MSIs that are placed in there are not valid (I set an ACL to stop them from being deleted) – the MD5s are different between ones left in there and ones produced on the Desktop.

 

I need to be able to create the MSIs on-the-fly but as the installer is not being run by the logged-in user I have no way to access the installers as the "Desktop" does not exist.
As such, if there is a way I can hard-code a directory for the installer to place the MSIs into, please let me know how.

 

Cheers

Taphead

Link to comment
Share on other sites

Hi Rick, it's a valid question.
I'm looking to deploy Paint.NET using an RMM system and I want to make the script as automated as possible. Everything has been written to be generic such that on each script run the latest version of Paint.NET is ascertained, downloaded and extracted, at which point the MSIs must be produced from the original installer file.
Altering the system is, unfortunately, not an option here; really I either need to figure this out or abandon it.

 

If I execute one of the MSIs from the PdnSetup folder it instructs me to do the installation via the setup.exe. I have the entire contents of the PdnSetup folder saved; is it possible that you could tell me what steps are taken to polish off the MSIs to turn them into standalones so I can try and replicate them?
I'm writing the script in PowerShell.

 

Many thanks
Taphead

Link to comment
Share on other sites

The "polishing" that /createMsi does is just baking in MSI properties into the MSI files.

 

You don't need this if you can provide the correct MSI properties on the command-line. The most important one to get started with is USINGWIZARD=1, which is used to steer folks toward using the setup wizard or /createMsi. But if you know what you're doing (TM), it's no big deal to supply it on the command line to msiexec.

 

Other properties are listed at https://www.getpaint.net/doc/latest/UnattendedInstallation.html

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

USINGWIZARD is not actually mentioned in the documentation. I'll make a note to add it.

Link to comment
Share on other sites

51 minutes ago, Ego Eram Reputo said:

USINGWIZARD is not actually mentioned in the documentation. I'll make a note to add it.

 

No, I'd rather not have it documented. That's intentional.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...