Home All Groups Group Topic Archive Search About

Conditional install problem

Author
19 Jan 2006 8:18 PM
Bill Ward
With DevStudio 2005 I have created an installer that installs the output of
multiple projects. I have added a check box page to the installer so that
the user can select whether or not to install a windows service (one of the
projects). The condition created by the check box allows me to correctly
install and uninstall the files used by the service (or not as the case may
be).
The problem arises with the custom actions I added to the installer to
register and unregister the service. These both worked before I added the
condition to the installer. Now, after adding the condition, the uninstall
process no longer unregisters the service. Removing the condition gets me
back to a working installer again (but obviously without the option to not
install the service). Any suggestions?

Thanks in advance

Bill

Author
20 Jan 2006 9:22 AM
Gary Chang[MSFT]
Hi Bill,

>The problem arises with the custom actions I added to the
>installer to register and unregister the service. These both
>worked before I added the condition to the installer. Now,
>after adding the condition, the uninstall process no longer
>unregisters the service...

Would you please tell me how do you add your customer action(via script/exe
or using the Orca) to your VS2005 setup project, and what's the condition
to the custom action of that unregistering service operation?

And it may be better if you can provide a simple repro sample
project(zipped) to us for research, you can send it to me directly(please
remove the "online" of my email address).


Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Author
20 Jan 2006 7:34 PM
Phil Wilson
See the thread called Custom Action / Windows Service starting 1/12/2006 in
microsoft.public.windows.msi or this:

http://groups.google.com/group/microsoft.public.windows.msi/browse_frm/thread/73095d9ea568c71c/2f7520a523fee6af?lnk=raot&hl=en#2f7520a523fee6af

--
Phil Wilson [MVP Windows Installer]
----
Show quote
"Bill Ward" <bill@noemail.noemail> wrote in message
news:OHq66VTHGHA.1124@TK2MSFTNGP10.phx.gbl...
> With DevStudio 2005 I have created an installer that installs the output
> of multiple projects. I have added a check box page to the installer so
> that the user can select whether or not to install a windows service (one
> of the projects). The condition created by the check box allows me to
> correctly install and uninstall the files used by the service (or not as
> the case may be).
> The problem arises with the custom actions I added to the installer to
> register and unregister the service. These both worked before I added the
> condition to the installer. Now, after adding the condition, the uninstall
> process no longer unregisters the service. Removing the condition gets me
> back to a working installer again (but obviously without the option to not
> install the service). Any suggestions?
>
> Thanks in advance
>
> Bill
>

AddThis Social Bookmark Button