How to debug uninstall?

Got a problem you cannot solve? Try here.
tikard
Posts: 1
Joined: Wed Jul 18, 2007 4:09 pm

How to debug uninstall?

Postby tikard » Tue Aug 14, 2007 10:54 pm

What do you have to do to start the uninstall under the debugger. I am trying to delete files just after the uninstall is processed but it does not work. Is there a place you pass in flags or what do I need to do to see the uninstall script/process under the debugger?

pfennig
Posts: 168
Joined: Wed Nov 08, 2006 8:39 am

Postby pfennig » Wed Aug 15, 2007 12:54 am

Basically you do the same as for the install process. Set a few break points and start the debug mode.
Best regards
pfennig

ParallaxiT
Posts: 32
Joined: Tue Mar 10, 2009 12:10 pm

Re: How to debug uninstall?

Postby ParallaxiT » Fri Dec 17, 2010 4:01 pm

I am also trying to figure out why my files and registry settings are not being un-installed. I install using debug mode and i can step through no problem. But how do i start the uninstall process. If i click debug it just upgrades the program but never hits the Apply Uninstall section.

Any help?!

Thanks!

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: How to debug uninstall?

Postby mills » Fri Dec 17, 2010 6:20 pm

In your project settings, you can specify whether or not the revision code will automatically be generated each build. Uncheck that and you should observe the behavior you want.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.

ParallaxiT
Posts: 32
Joined: Tue Mar 10, 2009 12:10 pm

Re: How to debug uninstall?

Postby ParallaxiT » Mon Dec 20, 2010 10:44 am

If I uncheck that setting, what do i click next to fire the uninstall. I am not in front of my machine right now so bear with me, I know i have a Start Debug button which starts the installer. Do i press that once it is installed (in debug mode) and because i did not change the revision code as you mentioned, it will start the uninstaller?

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: How to debug uninstall?

Postby giaviv » Mon Dec 20, 2010 11:53 am

Dear ParallaxiT,

Exactly. Try it out and let me know how it works for you.

Best,
Aviv Giladi
InstallAware Support
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

ParallaxiT
Posts: 32
Joined: Tue Mar 10, 2009 12:10 pm

Re: How to debug uninstall?

Postby ParallaxiT » Mon Dec 20, 2010 2:12 pm

OK, here is what I did.
1. Deployment Type - UnCompressed Directory Layout
2. Debug Build - Checked
3. Compression - None
4. Output - unchcecked 'Change revision code automatically'
5. I then click Build - CD or DVD and it compiles and builds my setup in debug mode correctly
6. I then click on the Debug icon to allow me to step through the installer, works correctly and i can step all the way through to complete.
7. I click on Debug again and all it does is go through a quick re-install. Never hits any uninstall code

So what am i missing? Thanks for the quick help too!!

If this is quicker, the reason i am trying to debug is that on uninstall not all the created folders are being deleted. I use the following code. Tried before and after the Apply Uninstall command but no effect. I can't even find where the REMOVE variable is set in the MSI code.


Cheers
Attachments
uninst.JPG
uninst.JPG (41.93 KiB) Viewed 35369 times

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: How to debug uninstall?

Postby giaviv » Mon Dec 20, 2010 11:34 pm

Dear ParallaxiT,

I just tried the steps you are describing and it works for me. What happens is that the second time you run the installer in debug mode, a window comes up that gives you an option to either modify, repair or uninstall your program. Make sure you are not missing anything - your "change revision code automatically upon rebuild" checkbox has to be unchecked, and your software has to be fully installed (while the checkbox is unchecked) before you can debug the installer. Let me know how this works out for you.

Regards,
Aviv Giladi
InstallAware Support
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

ParallaxiT
Posts: 32
Joined: Tue Mar 10, 2009 12:10 pm

Re: How to debug uninstall?

Postby ParallaxiT » Tue Dec 21, 2010 8:51 am

It makes total sense and i bet I know why mine fails to do the uninstall. I modified my installer to not advertise (i think thats what its called), and not show the majority of windows upon install. I guess I need to re-enable the dialog which prompts the user for the options you mentioned. I will try that this morning and get back to you.

On a side note, did you have any ideas why my files do not get deleted upon uninstall as i mentioned in the previous post and screenshot? I think once i can debug a may get some error messages but if not it will be my next question. I can start a new post if you do not want cross-question postings to occur.

Cheers Mate for the help!!

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: How to debug uninstall?

Postby giaviv » Tue Dec 21, 2010 9:17 am

Dear ParallaxiT,

It can really be anything - perhaps you got the file names wrong, or maybe the files are in use and therefore cannot be removed. Please try to debug the uninstall process, it will probably be a lot more helpful than my guesses :) Please let me know if that helped.

Regards,
Aviv Giladi
InstallAware Support
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

carlos
Posts: 6
Joined: Tue Sep 13, 2011 2:45 pm

Re: How to debug uninstall?

Postby carlos » Tue Sep 13, 2011 2:59 pm

I am having this problem too. If I run the installer from the Add-Remove programs or call a short cut we have in the start menu to initiate the Uninstallation, a folder with a name "~0" remains in the $APPLICATIONDATA$ folder. The reason being that a folder with A GUID is kept in the $APPLICATIONDATA$ folder that contains a copy of the installer that is run from the Add-Remove programs or short cuts, this folder cannot be deleted because it is still in use, so I end up with a folder ~0 at the end of the installation. Anyone found this problem and gotten around it?

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: How to debug uninstall?

Postby giaviv » Tue Sep 13, 2011 3:05 pm

carlos,

Does restating the machine resolve the issue?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

carlos
Posts: 6
Joined: Tue Sep 13, 2011 2:45 pm

Re: How to debug uninstall?

Postby carlos » Tue Sep 13, 2011 3:55 pm

Yes it removes these folders. They must be marked for removal by the OS then. My team is happy with that, thanks.

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: How to debug uninstall?

Postby giaviv » Wed Sep 14, 2011 5:30 pm

Great!
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 30 guests