OT: Uninstalling on Vista
Hi Friedrich,
This is not really SB question, but related.
I'm installing files into the COMMON_APPDATA and in my application I
copy files to LOCAL_APPDATA. When uninstalling, I don't have access
to those files from the uninstaller since a) they weren't installed b)
they are not accessible from it under vista/w2008.
I also use registry keys under HKCU which again can't be uninstalled
via normal channels.
What options are there to remove those files (if wanted)
before/during/after the uninstall process under Vista/W2008?
Best regards,
Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
Re: OT: Uninstalling on Vista
Hi Arnór,
Good question. You don't have any option to access "current user" files and
registry settings from an elevated application.
But I think Charles had to do something similar for his PageSnip project.
But I can't remember how he did it. Charles, are you here...<g>? Was it a
SetupBuilder "asInvoker" application that did the "final cleanup" for
current user stuff?
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes
-- Official Comodo Code Signing and SSL Certificate Partner
Re: OT: Uninstalling on Vista
Arnor,
maybe a stupid idea for the files at least : open the SB log file from a
small special SB 'uninstaller' and ADD the corresponding lines to the files
your app added....
Like this when the regular SB unisntaller comes up afterwards it will think
it installed all those also......
offhand idea ....
--
Thank you
Cordialement - Best regards
Jean-Pierre GUTSATZ
CGF
DMC - Data Management Center - A tool to let you Migrate Import Export
Transfer all your Data very easily
www.dmc-fr.com
Certified by Microsoft : "Works with Vista" & "Works with Windows Server
2008"
Re: OT: Uninstalling on Vista
Hi Jean-Pierre,
>maybe a stupid idea for the files at least : open the SB log file from a
>small special SB 'uninstaller' and ADD the corresponding lines to the files
>your app added....
>
>Like this when the regular SB unisntaller comes up afterwards it will think
>it installed all those also......
The problem with that is that then the information would first need to
be written down by my software, then a secondary software would need
to run elevated to write to the uninstall log (which is in a subfolder
in the Program Files folder) since a non-elevated program can't write
to files there.
Maybe the uninstaller could do that before it starts processing the
uninstall log!
Best regards,
Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
Re: OT: Uninstalling on Vista
If you want to delete a folder and know the folder name (as your app
installed it and if it wrote to an ini file for example if different xases
can happen) simply use in uninstaller the delete dir function.....
reg is another thing.....
--
Thank you
Cordialement - Best regards
Jean-Pierre GUTSATZ
CGF
DMC - Data Management Center - A tool to let you Migrate Import Export
Transfer all your Data very easily
www.dmc-fr.com
Certified by Microsoft : "Works with Vista" & "Works with Windows Server
2008"
Re: OT: Uninstalling on Vista
Hi Jean-Pierre,
>Like this when the regular SB unisntaller comes up afterwards it will think
>it installed all those also......
That would also not work with the registry.
Best regards,
Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
Re: OT: Uninstalling on Vista
>>maybe a stupid idea for the files at least : open the SB log file from a
>>small special SB 'uninstaller' and ADD the corresponding lines to the
>>files your app added....
>>
>>Like this when the regular SB unisntaller comes up afterwards it will
>>think it installed all those also......
>
> The problem with that is that then the information would first need to
> be written down by my software, then a secondary software would need
> to run elevated to write to the uninstall log (which is in a subfolder
> in the Program Files folder) since a non-elevated program can't write
> to files there.
>
> Maybe the uninstaller could do that before it starts processing the
> uninstall log!
You can do whatever you want with a "custom" uninstall. Delete folders,
files, registry entries, INI settings, ODBC stuff, etc. that were not
created by the installer. *All* functions (except "Install File") are
available in a "custom" uninstall.
But an uninstall will always run elevated, so you can't do any "current
user" modifications.
Friedrich
Re: OT: Uninstalling on Vista
> Good question. You don't have any option to access "current user" files and
> registry settings from an elevated application.
Right.
> But I think Charles had to do something similar for his PageSnip project.
> But I can't remember how he did it. Charles, are you here...<g>? Was it a
> SetupBuilder "asInvoker" application that did the "final cleanup" for
> current user stuff?
As some may remember, I have a small SB project that is used to configure
PageSnip with the user preferences.
When PageSnip is first ran, this SB config program runs and walks the user
through a config wizard. Since it is built by SetupBuilder, it has the
same look and feel as the main installer.
Note: I also call this again with different command line parameters so
that I can use it to allow the user to reconfigure PageSnip later on.
Again the same look and feel and I did NOT have to duplicate efforts in
Clarion for a setup screen!
Anyway the same SB config program has an option to remove the Registry
entries.
It is set to run AsInvoker - so it knows where to find things (the CSIDL
stuff matches) and it does have access to them.
However there is still no way for a one-step full cleanup.
The user has to select a program option to remove the data (which runs the
wizard in cleanup mode) and then they would have to run the regular
installer afterwards.
The only other idea (haven't tried this) would be to "chain" the two
uninstallers (if possible).
Set the normal uninstaller to run asInvolker, remove the Registry entries
and then have that one RUN the elevated one to remove the app (without
waiting).
I have a feeling this would not work smoothly since at a minimum the user
would be prompted to run the elevated uninstaller on Vista/W2008.
Does that make sense?
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------
Re: OT: Uninstalling on Vista
Hi Charles,
> I have a feeling this would not work smoothly since at a minimum the user
> would be prompted to run the elevated uninstaller on Vista/W2008.
Yes, you are right. The main problem is, that an uninstall invoked by the
"Add/Remove Progams" Panel in Vista/2008 (aka "Programs and Features")
always runs elevated (even if it "only" requests asInvoker execution level).
Friedrich
Re: OT: Uninstalling on Vista
>> I have a feeling this would not work smoothly since at a minimum the user
>> would be prompted to run the elevated uninstaller on Vista/W2008.
>
> Yes, you are right. The main problem is, that an uninstall invoked by the
> "Add/Remove Progams" Panel in Vista/2008 (aka "Programs and Features")
> always runs elevated (even if it "only" requests asInvoker execution level).
Hi Friedrich,
Thanks for the confirmation (and explanation).
;-)
Charles
--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------