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!

shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Uninstallation hangs

Hi,

One of the customer reported that uninstallation hangs(with 100% load) in one of the machine.So, I asked them to provide the logs(/L*V "uninstall.log")

Operating system details: Windows Vista 32 German
This seems to be reproducible

He sent me the following details
1)the uninstall_test4_engl.log in english. Using as installation language English.
Windows Vista 32 German folder: C:\Program Files\test4.
Same result: endless uninstallation
uninstall_test4_engl.zip
(143.84 KiB) Downloaded 776 times
2)Log(Vistalogs_Progr_log4.zip) from Windows MSI intall of Install DC into Progams\test4 and uninstall after terminate 1 of the msiexec.exe.
Then Warning: "1910 Could not remove shortcut PalService.lnk" After click OK . The desinstallation was continued and finished successfully.
Vistalogs_Progr_log4.zip
(33.48 KiB) Downloaded 916 times
Can you please help me in solving this??

If you need any more information(e.g. the aip file, reproduce the same problem etc), Please do let me know.

Regards,
Rohan
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstallation hangs

Hi,
Customer also tried this in one of the Win7 machines, and he is getting the same problem. Please find attached the logs for the same.
Uninstall_Prog_W7_failed.zip
(58.31 KiB) Downloaded 681 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstallation hangs

Hello Rohan,

I'm not so sure why this happens. However, this behavior may appear due to a Windows bug. Please take a look on our "Warning 1910. Could not remove shortcut" thread which debates a similar issue.

Can you please try to implement the Warning 1910 workaround posted by my colleague and see if the behavior still persist? If so, can you please send us the .AIP (project file) and a download link for your setup package to support at advancedinstaller dot com so we can test and investigate them on our side?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstallation hangs

Hi Daniel,

Customer has reported that even manually he is not able to delete the file(i.e desktop shortcut), and he seems to the administrator. I am not sure about the problem.

I have asked for the remote access to this system. I shall try to analyze the problem, and come back to you with more details.

We have holiday till 1st of Jan. So in case I do not come back today, then I will be coming back only in the next year. Wish you Merry Christmas, and happy new year.

Regards,
Rohan
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstallation hangs

Hi Daniel,

I have done some quick tests on this machine(we have per-user setup)
Testcase 1:
- Install on a machine(do not change the install location)
- It gets installed in C:\Documents and Settings\rohs\Application Data
- Now uninstall this using the Setup.exe which works fine
- Also uninstalled this using the Control Panel-Add/remove, which also works fine

Testcase 2:
- Install on a machine, change the install location to C:\Program Files\test
- It gets installed in C:\Program Files\test
- Now uninstall this using the Setup.exe which works fine
- When I uninstall this using the Control Panel-Add/remove, this hangs(with 100% cpu usage)

Any clues??
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstallation hangs

Hello Rohan,

I'm not sure why this happens. Can you please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate it? Also, it would be useful if you could isolate the behavior in a sample and send it us so we can investigate.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstallation hangs

Hi Daniel,

I have sent you a link to the complete project file(aip along with other dependencies) to support at advancedinstaller dot com

Steps to reproduce
1) Open the aip file(UninstallProblem\Setup\DesktopControl\UCSoftphone)
2) Build the "Teles_build" media
3) Now, install this Win7/Vista(German) machine
4) Uninstall thru Control Panel->Add/Remove

Note: In the actual installer I am also signing the file, the version sent to you does not contain this.

Do let me know if you see any problem in this.

FYI: I had also asked the customer to install all windows updates, and latest windows installer. He did the same but the problem was not solved.

Regards,
Rohan

Note: I will also try to isolate the problem and let you know
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstallation hangs

Hi Daniel,

I have sent you a mail along with the aip files(and their dependencies). With some changes, this seems to be working fine. However, if you need any help in analyzing the problem please do let me know.

I have provided two files
- setup-windows-386_nonworking.aip(i.e UninstallProblem\Setup\DesktopControl\UCSoftphone\setup)- this one does not work on multiple machines(only in customer place)
- setup-windows-386_working.aip(i.e UninstallProblem\Setup\DesktopControl\UCSoftphone\setup) – I have got the remote access to one of the customer machine, and this seems to be working fine. Only change I have done is “installation type” changed from “Per user only” to “Per user only(with administrative rights required)”

Steps to reproduce
1) Open the aip file(UninstallProblem\Setup\DesktopControl\UCSoftphone\setup-windows-386_nonworking.aip)
2) Build the "Teles_build" media
3) Now, install this Win7/Vista(German) machine
4) Change the installation folder(to c:\Program files\test)
5) Uninstall thru Control Panel->Add/Remove

Note:
1) As mentioned earlier, the uninstall works fine if the uninstall is initiated using the setup.exe.
2) If the folder is not changed, then Control Panel->Add/Remove also works fine.

If you need anything from this remote machine(e.g logs) please do let know

Regards,
Rohan
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstallation hangs

Hello Rohan,

Please keep in mind that you should not use a per-user installation type when you want to install in a per-machine location (e.g. "C:\Program Files"). In order to install in a per-machine location you should use a per-machine installation type.

So, can you please set your installation type to "Per-machine only (fails if user is not administrator)" and see if the behavior still persist?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstallation hangs

Hi Daniel,
Fist point:
Please keep in mind that you should not use a per-user installation type when you want to install in a per-machine location (e.g. "C:\Program Files"). In order to install in a per-machine location you should use a per-machine installation type

Rohan: I understand that customer should ideally select one of the "user folder"(and not program files). He is able to change this, because of the "change folder" dialog. And there is no way to force the same(other than Not displaying the "change folder" dialog).
The requirement for us is the following
- We should support the "per user" installation
- We should also have an option to the "change the installation folder"

When I select “Per user only(with administrative rights required)” everything seems to be works fine, but not sure whether this would work fine in all cases. Can you please comment on the same

Second point:
So, can you please set your installation type to "Per-machine only (fails if user is not administrator)" and see if the behavior still persist
Rohan: Product is designed for the "per-user", and not "per-machine"
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstallation hangs

Hello Rohan,
Rohan: I understand that customer should ideally select one of the "user folder"(and not program files). He is able to change this, because of the "change folder" dialog. And there is no way to force the same(other than Not displaying the "change folder" dialog).
The requirement for us is the following
- We should support the "per user" installation
- We should also have an option to the "change the installation folder"
In this way, as you already observed, you should use a "Per-user only (with administrator rights required)" installation type. This is because the above installation type will require elevation during both, install and uninstall, processes(the UAC prompt will appear during uninstall from Control Panel). If you will use a "Per-user only" installation type, then when you will uninstall from Control Panel the UAC prompt for elevation will not be triggered and, therefore the uninstall process will run without elevation. In this case the uninstall process will not be able to remove the installed files in "Program Files" folder.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstallation hangs

Thanks Daniel.
So in summary if I use "Per-user only (with administrator rights required)", then the reported problem would be solved. Is that understanding right??

Edited:
After the mentioned changed customer reported that he is getting "An unidentified program wants access to your computer" warning message(when he uninstalls from using the Control panel->add/remove Programs). He has sent me the screenshot in a word document which I am not able to attach with this. I will mail the same.
Note: Even here, if I use the setup.exe(then select the remove from repair/remove list), uninstall works fine
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstallation hangs

Hello Rohan,

Unfortunately, this is the default Windows Installer behavior when uninstalling from Control Panel. This happens because when a package is installed Windows Installer strip down the digital signature information within the MSI before caching it, in order to decrease its size. Please take a look on our Why does the "Unknown Publisher" message appear during the uninstall of a digitally signed package? FAQ which debates the same issue.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstallation hangs

Thanks Radu.

But if I install in the user directory(say in C:\Documents and Settings\rohs instead of c:\program files), then uninstall(from control Panel->add/remove) works fine. Any idea about this?

If you need any help in collecting logs/analysis please do let me know.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstallation hangs

Hello Rohan,

Do you mean that when you are using a "Per-user only (with administrator rights required)" installation type, then the "Unkown publisher" warning appear only when you are installing in " c:\program files" location? Can you please tell us if the publisher information are correctly displayed when the setup is installed in "C:\Documents and Settings\rohs" location and when you are uninstalling from "Control Panel"?

Also, can you please send us the last modified version of your .AIP (project file) and a download link to your built setup package to support at advancedinstaller dot com so we can test and investigate them? Also, please tell us what is your target machine software configuration (operating system version, OS language, service pack level, Windows Installer version, etc).

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”