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.Install State 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 3 3033
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
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"
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 *** This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 Edition is Selected and only
Software is Selected) throws an exception, during the installation by
11 Percent installation progress!
|
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 Edition is Selected and only
Software is Selected) throws an exception, during the installation by
11 Percent installation progress!
|
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 you are running windows in safe
mode, or of the Windows installer is not currently
installed......
We are running Windows 2000 server SP4.
|
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 Installer 3.0).
My specific issues:
1. DetectNewerInstalledVersion = False, still detects a version and refuses
to install even with UpgradeCode = same and ProductCode being difference.
2. DeleteAtUninstall doesn't work if = False (some BS...
|
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, custom actions get fired
AFTER the real installation is done.
I want to do some things like
1) check if some required software is in position if not execute an
installer
2) backup some important files before installation
| |
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 environment
variable. Every time, I've had to go through and add this by hand, to
have something resembling a usable Python installation. No such
problems on Linux, whether it be Mandrake/Mandriva, Fedora Core, or
Kubuntu. So why is the Windows...
|
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
have tested it on Windows Vista and it doesn't retrieve remote network
drives. It must retrieve a string with the drive letters and a string with
the drive types (2=removable drive, 3=hard drive, 4=remote drive, 5=CD-ROM
drive, 6=RAM drive)
I...
|
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 to whether my solution is robust or whether
there is a better way to do it.
What I've been trying to do is to create a core project with different
extension projects, one for each customer. I wanted to create a different
Setup project for each...
|
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 Windows XP Pro) I've moved
on to Windows Vista (Home Premium). MySQL and Apache2 have both
installed satisfactorily, but I'm having problems with PHP5.
I downloaded the PHP5 Windows installer (the .msi file) for 32-bit
Windows, which is supposed...
|
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?
Why do I need to set a property within my code to the service name?
Are all these required or am I just doing this for consistency purposes?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |