To help you better we need some information from you.
*** Please fill in the fields below if you are currently using a Trial Version of the Product. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build: Sapien powershell studio version 5.6.169
32 or 64 bit version of product: 64
Operating system: Windows 10 Enterpsise
32 or 64 bit OS: 64
Powershell Version : PSVersion 5.1.16299.1146
*** Please add details and screenshots as needed below. ***
I am trying to build an .MSI which is working perfectly.
My custom setting screen has an "install" as well as an "uninstall"
I have one powershell script to install my software, and one powershell script to uninstall my software.
Once I "build MSI", I get my <file>.msi
when I run the .msi ( double click ) the powershell script to "install" my software works perfectly.
When I go to "add or remove programs" I am able to see the new program.
If I run the .msi ( double click ) AGAIN, the powershell script to "uninstall" my software runs and
actually uninstalls my software ??????
When I go to "add or remove programs" I am still able to see the new program.
DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
launching the .msi twice in a row does an uninstall
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
-
- Posts: 6
- Last visit: Tue Dec 22, 2020 1:16 pm
launching the .msi twice in a row does an uninstall
- Attachments
-
- uninstall.PNG (54.96 KiB) Viewed 19595 times
-
- install.PNG (57.39 KiB) Viewed 19595 times
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: launching the .msi twice in a row does an uninstall
License information deleted by moderator. Please note where it says "DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM"
If we detect any suspicious use of your license, we may have to lock this license. Please contact sales@sapien.com if that happens.
If we detect any suspicious use of your license, we may have to lock this license. Please contact sales@sapien.com if that happens.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: launching the .msi twice in a row does an uninstall
This is a normal operation. All created MSIs are configured to uninstall/install if a newer or same version is detected.
That way software gets reliably updated or repaired.
So what you see is normal. There is an uninstall, followed by a re-install and you still see the software in the "Add / Remove Programs" panel.
That way software gets reliably updated or repaired.
So what you see is normal. There is an uninstall, followed by a re-install and you still see the software in the "Add / Remove Programs" panel.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
-
- Posts: 6
- Last visit: Tue Dec 22, 2020 1:16 pm
Re: launching the .msi twice in a row does an uninstall
Hi Alexander,
Other co-workers get a pop-up stating that a version is already installed when you try to install twice in a row.
Also, When I install twice in a row, my uninstall script runs, but my install script does not run.
Other co-workers get a pop-up stating that a version is already installed when you try to install twice in a row.
Also, When I install twice in a row, my uninstall script runs, but my install script does not run.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: launching the .msi twice in a row does an uninstall
So the MSI is behaving differently on your machine than on other machines, is that what you are saying?
You will need to run the MSI the first and second time with logging. That should probably give you a clue as to what is happening.
You can also try to do a manual uninstall and then start at a defined state. There are tools on Microsoft's site to clean up errant installer information.
Please understand that we cannot diagnose MSI (Microsoft Installer) issues on your machine.
You will need to run the MSI the first and second time with logging. That should probably give you a clue as to what is happening.
You can also try to do a manual uninstall and then start at a defined state. There are tools on Microsoft's site to clean up errant installer information.
Please understand that we cannot diagnose MSI (Microsoft Installer) issues on your machine.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
-
- Posts: 6
- Last visit: Tue Dec 22, 2020 1:16 pm
Re: launching the .msi twice in a row does an uninstall
Hi Alexander,
Can you give me more detail on how to turn on/off logging?
when I turn on"use a simple UI when installing" I get this ( see enclosure ) the second time I attempt to install.
Can you give me more detail on how to turn on/off logging?
when I turn on"use a simple UI when installing" I get this ( see enclosure ) the second time I attempt to install.
- Attachments
-
- UI_2.PNG (61.31 KiB) Viewed 19292 times
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
-
- Posts: 6
- Last visit: Tue Dec 22, 2020 1:16 pm
Re: launching the .msi twice in a row does an uninstall
I ran msiexec /I <file.msi> /L ./log.txt from the command line
I have enclosed the log file for your review.
-
- Posts: 6
- Last visit: Tue Dec 22, 2020 1:16 pm
Re: launching the .msi twice in a row does an uninstall
Hi Alex,
Another thing I discovered is that if I do not make any changes to my code or any
settings, but simply launch a build, then I get the following pop up when I attempt
to install it the second time.
steps
Install : works
rebuild : generate an .msi
Install again
Another thing I discovered is that if I do not make any changes to my code or any
settings, but simply launch a build, then I get the following pop up when I attempt
to install it the second time.
steps
Install : works
rebuild : generate an .msi
Install again
- Attachments
-
- another.PNG (45.77 KiB) Viewed 19271 times
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: launching the .msi twice in a row does an uninstall
Yes, this is how MSI works. You must increase your version number for a new build. Please understand that while PrimalScript and PowerShell Studio can generate MSI (Microsoft Installer) file, we do not not provide support or training in regards to Windows features. Please consult with Microsoft documentation and/or direct questions regarding Windows Installer to Microsoft directly.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.