Jump to content


  • 0
Bartman10

Edit MSI installer to set a registry key for reinstall

Question

Hello, I'm not a pro at this so please forgive me.

I have an MSI installer that comes with a MST transform. Some clients are not operating correctly so they need to be reinstalled by SCCM.

So far I have:

-Created an application package to uninstall

-Create an application package to install

-In the install app package, Deployment Types, edit the MSI Installer and set the Uninstaller app as a Dependence.

 

This may have worked 1 time but it did not reboot successfully and can't be run again because it knows it's already run. The install MSI checks for the application GUID and see's it's already installed.

 

I read online that to re-install an application write a value to the registry and then check for that. Ok. I've been trying to edit the MSI but am failing. I've been using Orca and SuperOrca. Basically I load the MSI and MST,  add a new line in Registry, It asks for a a "*Registry" key, I make one up that seems to match the formatting of the others, enter the Key, Name and Value, make the Component match the *Registry. 

But it does not work. The reg key is not created.. I included a screen shot of my handywork.

 

I've googled around and can find no example of adding a new registry key. I can only find changing a value.

 

Any help would be GREAT!

Capture.PNG

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
On 6/21/2019 at 1:43 AM, Jepeto 46 said:

I do not think you are taking the right options here.

what is your SCCM version? and have you tried to take care of it with a task sequence?

Hi 

It have nothing about SCCM to do.

Orca is program you can use to see info about your msi file before you install it, saving lot a time

https://www.technipages.com/download-orca-msi-editor

// Sokoban

Share this post


Link to post
Share on other sites

  • 0

There is no need to mess with the msi. Just create a installer script that uninstalls the application if it is installed and immediatelly reinstalls it. Additionally create a new detection rule for the install date property in the uninstall registry key with a value of >= current datetime.

Share this post


Link to post
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
Answer this question...

×   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.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.