We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

TOUCH365
Posts: 13
Joined: Tue Aug 21, 2018 11:20 am

Uninstall ended prematurely

Hi

Im having a problem where once my product is installed i cannot uninstall from control panel, it begins the uninstall process but at some point it gives me this error in attachment. However, if I run my setup file again it removes my program from control panel but not the other packages that were installed with it, like VC redist and MariaDB etc. I have also attached my project file if you could please help me with this.

Please note i am using virtual machines with clean installation of windows 7 and windows 10
Attachments
Touch365 Setupv8.aip
(163.45 KiB) Downloaded 398 times
Untitled.png
Untitled.png (37.03 KiB) Viewed 12048 times
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Uninstall ended prematurely

Hello and welcome to our forums,
Im having a problem where once my product is installed i cannot uninstall from control panel, it begins the uninstall process but at some point it gives me this error in attachment.
I am not sure why you encounter this behavior. In order for us to further investigate, can you please try to create a log for the uninstallation process which fails and send it by e-mail at support at advancedinstaller dot com? To do this, you can use a command line such as follows:

Code: Select all

msiexec /x {YourProductCode} /L*V yourLog.txt
The Product Code can be taken from the "Product Details" page --> "Product IDs" tab.
However, if I run my setup file again it removes my program from control panel but not the other packages that were installed with it, like VC redist and MariaDB etc. I have also attached my project file if you could please help me with this.
In what regards this, this is the normal behavior. After having a look on your project, I have noticed that in "Prerequisites" page, your "Feature-Based" prerequisites -> under "Setup Files" tab, you do not have the "Uninstall using this command line" option ticked. When you check this option for "SAP Crystal Reports runtime engine for .NET Framework (32-bit)", the "Uninstall using this command line:" field will be automatically filled with the:

Code: Select all

/x /qb
command. For "Visual C++ Redistributable for Visual Studio 2015 Update 3 x86/x64", you will need to manually fill the field with a command line that will uninstall it.

In what regards "Chained packages", the logic behind it is a bit more complicated. In order for it to install / uninstall, more conditions have to be met like explained in our "Chained Package Behavior" article. In order for your chained packages to be uninstalled, you can modify your install condition as it follows:

Code: Select all

RADIO = "RadioServer" AND NOT (REMOVE="ALL")
Hope this helps!

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TOUCH365
Posts: 13
Joined: Tue Aug 21, 2018 11:20 am

Re: Uninstall ended prematurely

this helped me big time1 thank you so much for your assistance
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Uninstall ended prematurely

You're always welcome!

I am glad you got this working!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TOUCH365
Posts: 13
Joined: Tue Aug 21, 2018 11:20 am

Re: Uninstall ended prematurely

I have one more question. After installing my app on windows 10 it breaks the windows apps such as the calculator and windows store. I know it is because of the installer because I specially tested on a clean windows 10 install where I checked and the calculator works but after I install my app the calculator stops working. I can also confirm that if I don't use the installer and manually install my app (not using the installer) it does NOT break the windows apps, so I'm convinced it could have to do with something I have done wrong on my project. i have attached my updated project file. your further assistance would be highly appreciated. Thank You
Attachments
Touch365 Setupv8.1.aip
(166.94 KiB) Downloaded 415 times
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Uninstall ended prematurely

Hello,

I have tested your scenario and indeed, something went wrong with the calculator after I have deployed the setup.

Until we finish our investigation, can you please send us a verbose log of the installation process and also a link from where we can download and run the setup built with Advanced Installer so we can manually test and see if the behavior persists by e-mail at suppport at advancedinstaller dot com?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TOUCH365
Posts: 13
Joined: Tue Aug 21, 2018 11:20 am

Re: Uninstall ended prematurely

ok sure. but i do not know how to get the verbose log for you.
here is the link from where you can download the setup http://touch365.co.za/wp/wp-content/upl ... upV8.1.exe
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Uninstall ended prematurely

Hello,

Thank you for the given link. The verbose log can be created by using a command line such as follows:

Code: Select all

YourSetup.exe /L*V "PathToLog"
Example of "PathToLog": "C:\SomeFolder\MyLog.txt"

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TOUCH365
Posts: 13
Joined: Tue Aug 21, 2018 11:20 am

Re: Uninstall ended prematurely

do i run this cmd before beginning the installation or after ?
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Uninstall ended prematurely

Hello,

You need to run that command on a machine where your setup is not installed. What that command line actually does is to deploy your setup and then register data about the installation in the log file.

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TOUCH365
Posts: 13
Joined: Tue Aug 21, 2018 11:20 am

Re: Uninstall ended prematurely

IM GETTING THIS ERROR. NOT SURE WHAT IM DOING WRONG

EDIT: SCRATCH THAT I KNOW WHAT I DID WRONG
TOUCH365
Posts: 13
Joined: Tue Aug 21, 2018 11:20 am

Re: Uninstall ended prematurely

ATTACHED IS THE LOG YOU ASKED FOR.
Attachments
LOG.TXT
(813.52 KiB) Downloaded 436 times
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Uninstall ended prematurely

Hello,

After further investigating this, it seems that this behavior is resulted from the installation of the registry keys under "HKEY_CURRENT_USER". I have extracted all the prerequisites from your package and installed them all manually without any success in reproducing the behavior.

In order to reproduce this, you can go to "Registry" page --> right click on "HKEY_CURRENT_USER" --> click on "Export REG". After doing so, copy the registry on a virtual machine and simply install them by double clicking on the executable. After that, you will notice the strange behavior in the "Calculator" application.

Unfortunately, I do not know why this behavior is encountered. I suggest you further investigate this, to see which of the registries causes such a strange behavior.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TOUCH365
Posts: 13
Joined: Tue Aug 21, 2018 11:20 am

Re: Uninstall ended prematurely

Hi

Thank you for the response and insight.

Is there any way you would be able to help me to change the settings I need through the installer (i was using a registry but that broke the windows apps) I have attached the screenshots of the fields I need to be changed.
*Decimal Symbol needs to be a Full stop (dot)
*Digit grouping Symbol and List separator needs to be a Comma
*Short Date format needs to be dd/mm/yyyy

This is the last thing I need to be resolved to have a complete 100% working installer.
Attachments
Numbers.jpg
Numbers.jpg (98.2 KiB) Viewed 11987 times
Date.jpg
Date.jpg (98.23 KiB) Viewed 11987 times
currency.jpg
currency.jpg (86.55 KiB) Viewed 11987 times
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Uninstall ended prematurely

Hello,

In order to achieve what you want, you can create a PowerShell script to modify the registry values for the ShortDate, Decimal and List value, and then use our predefined "PowerShellScriptInline" custom action. We will use the PowerShell script to modify the registry values for the ShortDate, Decimal and List value. The registry keys for these are sShortDate, sDecimal and sList.

Those said above can be achieved as it follows:

1) Go to "Custom Actions" page from the "Custom Behavior" group.

2) Select the "Run PowerShell inline script" custom action and press the "Add custom action with sequence" button (placed to the right side of the custom action name).

3) Copy the content of your script in the custom action.

4) Set the execution time to "Immediately".

5) Build and run the project.

If you do not have a PowerShell script to achieve those said above, you can use the following script:

Code: Select all

Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name sShortDate -Value dd/MM/yyyy

Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name sDecimal -Value .

Set-ItemProperty -Path "HKCU:\Control Panel\International" -Name sList -Value ,
Let me know if this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”