473,396 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Windows Installer problems

Hi
(Visual studio 2005)
My windows installer Setup project needs to install a desktop application
plus an optional Windows Service, into a single destination folder. Both
applications share the same assemblies and are part of the same solution.
Installation of the Windows Service is optional and is to be installed on a
single PC on a LAN, the desktop applications install to one or more pcs on
the same LAN.
Ive added the setup to my solution. Ive added a Checkboxes (A) dialog to the
user interface and will test CHECKBOXA1=1 to query if the service is to be
installed.
I've added the service to Install,Commit,Rollback and Uninstall nodes in the
Custom Actions window.
Ive added the condition CHECKBOXA1=1 to each of the actions.

When I install and uncheck CHECKBOXA1, the service isnt installed but the
files are copied to the target directory. Correct.
I uninstall this and the files and directory are deleted. Correct.

When I install and check CHECKBOXA1, the service IS installed (not running
as this has to be started manually afterwards). Correct.
I uninstall. The service remains in the services list, the files in the
directory are deleted. A file called service.InstallState is to be found in
the install directory.

What am I doing wrong please? If I try to install after this I'm told that a
service with this name already exists and it fails with a rollback.

thanks
Claire
Nov 5 '07 #1
3 3016
Ok, so I realize the cause of the problem. It's having the condition
CHECKBOXA1 = 1 in the Uninstall Custom Action. When I remove that then the
service uninstalls ok (if I selected to install it)
But now I can see that I'll have problems if I didnt install it in the first
place.

So how can I test to see if the service was installed and only uninstall if
it's there?

thanks
Nov 5 '07 #2
But now I can see that I'll have problems if I didnt install it in the
first place.

So how can I test to see if the service was installed and only uninstall
if it's there?
For future reference

In the uninstall section, change "CHECKBOX1A=1" to "(?my.service<>2)" where
my.service is the name of the service as in "Primary output from my.service"
Nov 12 '07 #3
Hi Claire,

We are facing the same problem for a similar situation.

Were you able to find a solution to this problem? If yes we would really
appreciate if you could share with us the same.

Awaiting your response.

Regards,
Anoop

*** Sent via Developersdex http://www.developersdex.com ***
Nov 22 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: black hawk | last post by:
Hello, i have a big problems, to install oracle 9i v9.2 Server to my "Windows XP" with Service Pack 2 and all security and other updates from Microsoft. The "Universall Installer" (Standard...
0
by: black hawk | last post by:
Hello, i have a big problems, to install oracle 9i v9.2 Server to my "Windows XP" with Service Pack 2 and all security and other updates from Microsoft. The "Universall Installer" (Standard...
2
by: Dermot O'Loughlin | last post by:
I am trying to install a dotnet application using it's websetup msi dotnet application. I am getting the following error: The Windows Installer Service could not be accessed. This can occur if...
1
by: Rob R. Ainscough | last post by:
I'm having several issues with Windows Setup Projects in VS 2005 and need to find a resource that might be able to help me work around some of the short comings of Windows Setup Projects (Windows...
1
by: lyl209 | last post by:
Hi, I am trying to create a web setup project for my asp.net 2.0 website and I had some problems. It worked fine until I want to add some custom actions into it. As some of you already knew,...
34
by: Ben Sizer | last post by:
I've installed several different versions of Python across several different versions of MS Windows, and not a single time was the Python directory or the Scripts subdirectory added to the PATH...
9
by: =?Utf-8?B?THVpcyBBbnRvbmlvIFJvc2VsbG8gR2FyY2lh?= | last post by:
Hi, I have a big problem with a Visual C++ 6.0 function that retrives the logical drives and types in the local system. This function works perfectly on Windows 98, NT, 2000, XP and 2003, but I...
0
by: =?Utf-8?B?U2ltb25EZXY=?= | last post by:
Hi All I would like to install the same Windows Service project on the same server under different names, one for each customer. I have been able to do it but I would like an expert opinion as...
12
by: Alan M Dunsmuir | last post by:
After having worked with Apache/MySQL/PHP for a year or so under Linux I need, purely for convenience, to set up a parallel platform under Windows. Unfortunately, since I last did this (using...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.