Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / March 2007

Tip: Looking for answers? Try searching our database.

Custom Action on uninstall

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sergio - 06 Mar 2007 07:56 GMT
My setup contains custom action(.net exe) to be launched on uninstall.

If after installation exe containing custom action is removed
uninstall failed with file not found exception.

I suggest that i have to add condition that checks existing of custom
action exe

How can i do this?

Thanks in advance,
Sergey
Phil Wilson - 06 Mar 2007 15:21 GMT
You don't have to physically install a program used for a custom action -
you can set its Exclude property so it's not visible to users (it's in the
cached MSI file and is run from there).

Signature

Phil Wilson
[Microsoft MVP-Windows Installer]

> My setup contains custom action(.net exe) to be launched on uninstall.
>
[quoted text clipped - 8 lines]
> Thanks in advance,
> Sergey
Sergio - 08 Mar 2007 06:12 GMT
> You don't have to physically install a program used for a custom action -
> you can set its Exclude property so it's not visible to users (it's in the
[quoted text clipped - 17 lines]
>
> - Show quoted text -

Phil thank you forthe answer. But seems it doesn't work for mee. I get
following compile rror after excluding custom action .exe from setup:
Building file 'D:\temp\Setup1\Setup1\Debug\SergeySetup.msi'...
ERROR: Unable to build custom action named 'TestInstaller.exe' from
object 'TestInstaller.exe' because the object is marked as excluded.

Any tip ?
Thanks
Sergio - 08 Mar 2007 06:48 GMT
> > You don't have to physically install a program used for a custom action -
> > you can set its Exclude property so it's not visible to users (it's in the
[quoted text clipped - 31 lines]
>
> - Show quoted text -

Setting exlude to true only works for ummanaged CustomAction, but my
CustomAction is .net assembly with installer class.
I read your article "http://www.simple-talk.com/dotnet/visual-studio/
visual-studio-setup---projects-and-custom-actions/" it's helpfull but
not in my case.
Phil Wilson - 09 Mar 2007 15:42 GMT
Ah ok, unmanaged custom actions only. That's a pain.
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]

>>
>> > You don't have to physically install a program used for a custom
[quoted text clipped - 42 lines]
> visual-studio-setup---projects-and-custom-actions/" it's helpfull but
> not in my case.
Sergio - 11 Mar 2007 06:13 GMT
> Ah ok, unmanaged custom actions only. That's a pain.
> --
[quoted text clipped - 47 lines]
>
> - Show quoted text -

Ok thanks  lot, i'll try to figure out another solution.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.