[WiX-users] Removing a file

2008-01-11 Thread Graham Vickrage
As a newbie I am really struggling to do the simplest of tasks

I need to remove a shortcut left by an old application in the start menu 
  startup directory.

I have tried to define a directory (under the component) and add a 
removefile tag in the component. But this does not work. Any clues as I 
can't find a single example on that is doing anything similar.

Any help greatly appreciated.

Directory Id=TARGETDIR Name=SourceDir
Directory Id=ProgramFilesFolder  Name='PFiles'
Directory Id='CourtneyThorne' Name='Courtney Thorne Ltd'
  Directory Id=INSTALLDIR Name=Call Manager 4.0

Component Id='MainExecutable' 
Guid='f83bbc21-952a-43d4-8055-da2bea58b891'
  File Id='CallManEXE' Name='Call Manager.exe' DiskId='1' 
Source='Call Manager.exe' Vital='yes'
Shortcut Id=startmenuCT Directory=ProgramMenuDir 
Name=Call Manager 4.0
  WorkingDirectory='INSTALLDIR' Icon=CallManager.exe 
IconIndex=0 /   
Shortcut Id=desktopCT Directory=DesktopFolder 
Name=Call Manager 4.0
  WorkingDirectory=INSTALLDIR Icon=CallManager.exe 
IconIndex=0 /
  /File
  File Id='CallManConfEXE' Name='Call Manager.exe.config' 
DiskId='1' Source='Call Manager.exe.config' Vital='yes'
  /File
  RemoveFile Id=oldinstallshortcut On=install 
Name=Launch logging.exe.lnk Directory=oldlnkstartupfolder /
/Component

  /Directory
/Directory
/Directory

  Directory Id=ProgramMenuFolder Name=PMenu
Directory Id=ProgramMenuDir Name=Courtney Thorne Ltd /
  /Directory
 
  Directory Id=DesktopFolder Name=Desktop /
  Directory Id=oldlnkstartupfolder FileSource=C:\Documents and 
Settings\All Users\Start Menu\Programs\Startup Name=Call Manager 4.0 /
/Directory

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Removing all users\Startup menu shortcut

2008-01-10 Thread Graham Vickrage
I am trying to remove a shortcut added by an old program in the start 
menu folder for all users i.e.

C:\Documents and Settings\All Users\Start Menu\Programs\Startup

I have tried the following but it does not work, I guess I need to 
somehow mention the all users part. Has anyone done this?

RemoveFile Id=oldinstallshortcut On=install Name=Launch 
logging.exe.lnk Property=StartupFolder /

Many thanks in advance

Graham

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Problem Starting service on XP

2008-01-03 Thread Graham Vickrage
In the end it was the the exe.config file not being included with the 
serice.exe file.

I added the following in the service component and it works.

  File Id='ServiceConfig' Name='Call Manager 
Service.exe.config'
Source='Call Manager Service.exe.config' ReadOnly='no'  
Vital='yes' Hidden='no' System='no' Checksum='no' /

Thanks for all your help identifying this.



Wilson, Phil wrote:
 If it can be started ok after the install then the issue could be 
 dependencies.  If it's dependent on an assembly in the GAC or (on Vista) the 
 C++ CRT support being installed from a merge module these won't be available 
 at StartServices time.

 Phil Wilson

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Graham Vickrage
 Sent: Wednesday, January 02, 2008 10:42 AM
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] Problem Starting service on XP

 I am trying to install and start a service but its coming back with.
 Error msg: Verify that you have sufficient priveleges to start system 
 services. I am running the msi file as an administrator.

 I can install / start the service manually but not via wix, has anyone seen 
 this before and do they have sample code?

 Much appreciated.

 Graham

 Code:

 Component Id='ServiceExeComponent' 
 Guid='6ca52ece-6346-4bbf-ae10-248cc3ab74c4'
   SharedDllRefCount='no' KeyPath='no' NeverOverwrite='no' 
 Permanent='no' Transitive='no'
   Win64='no' Location='either'

   File Id='ServiceExeFile' Name='Call Manager Service.exe' 
 DiskId='1'
 Source='Call Manager Service.exe' ReadOnly='no' KeyPath='yes' 
 Vital='yes' Hidden='no' System='no'
 Checksum='no' /

   ServiceInstall Id='CMServiceInstall' DisplayName='Call Manager 
 Service' Name='Call Manager Service'
 ErrorControl='normal' Start='auto' Type='ownProcess' 
 Vital='yes' Interactive=no /

   ServiceControl Id='CMServiceControl' Name='Call Manager 
 Service'
 Start='install' Stop='both' Remove='uninstall' Wait='yes' /
 /Component



 -
 This SF.net email is sponsored by: Microsoft Defy all challenges. 
 Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users



 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
   

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Problem Starting service on XP

2008-01-02 Thread Graham Vickrage
I am trying to install and start a service but its coming back with.
Error msg: Verify that you have sufficient priveleges to start system 
services. I am running the msi file as an administrator.

I can install / start the service manually but not via wix, has anyone 
seen this before and do they have sample code?

Much appreciated.

Graham

Code:

Component Id='ServiceExeComponent' 
Guid='6ca52ece-6346-4bbf-ae10-248cc3ab74c4'
  SharedDllRefCount='no' KeyPath='no' NeverOverwrite='no' 
Permanent='no' Transitive='no'
  Win64='no' Location='either'

  File Id='ServiceExeFile' Name='Call Manager Service.exe'  
DiskId='1'
Source='Call Manager Service.exe' ReadOnly='no' 
KeyPath='yes' Vital='yes' Hidden='no' System='no'
Checksum='no' /

  ServiceInstall Id='CMServiceInstall' DisplayName='Call 
Manager Service' Name='Call Manager Service'
ErrorControl='normal' Start='auto' Type='ownProcess' 
Vital='yes' Interactive=no /

  ServiceControl Id='CMServiceControl' Name='Call Manager 
Service'
Start='install' Stop='both' Remove='uninstall' Wait='yes' /
/Component



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Launching MSI from MSI

2007-12-19 Thread Graham Vickrage
Thanks for the advice to use a bootstrapper to achieve the below. Having 
decided to do this I am now trying to add the correct commands to the 
wixproj file. Below I am trying to install postgresql-8.2-int.msi before 
my own msi. However it doesn't know where to find the 
postgresql-8.2-int.msi file despite me putting it in every place I can 
think of including C:\Program Files\Microsoft Visual Studio 
8\SDK\v2.0\BootStrapper.

It seems this has to be created as a package in its own right, which 
after following MS instructions does not work because I am working off a 
wix project file rather than a standard VS2005 one. I feel as if I'm 
missing the point here as it seems extremely complex to achieve a simple 
process of installing one msi after another.

Does anyone have any tips or examples that are doing something similar, 
as the ones I have seen are only working with standard prerequisites and 
not necessarily with a wix project.

  ItemGroup
BootstrapperFile Include=postgresql-8.2-int.msi
  ProductNamepostgresql-8.2-int.msi/ProductName
/BootstrapperFile
BootstrapperFile Include=CallManager.msi
  ProductNameCall Manger 4.0/ProductName
/BootstrapperFile
  /ItemGroup
  Target Name=BuildBootstrapper Inputs=$(OutDir)$(TargetFileName) 
Outputs=$(OutDir)\Setup.exe Condition= '$(OutputType)'=='package' 
GenerateBootstrapper ApplicationFile=$(TargetFileName) 
ApplicationName=Call Manager 4.0 
BootstrapperItems=@(BootstrapperFile) ComponentsLocation=Relative 
Culture=en-US OutputPath=$(OutputPath) /
  /Target
  Import 
Project=$(MSBuildExtensionsPath)\Microsoft\WiX\v3.0\Wix.targets /
   PropertyGroup
BuildDependsOn$(BuildDependsOn);BuildBootstrapper/BuildDependsOn
  /PropertyGroup






Graham Vickrage wrote:
 I am a newbie and am strugglilng with the following problem.

 I need to install a 3rd party DB (postgresql) as part of my installation 
 proceedure. I have figured out how to do this silently using a .bat file 
 to launch the DB msi from my msi using

 Property Id='MSINSTALLER'C:\temp\WixUI\InstallPG.bat/Property
 CustomAction Id=ManagedInstall Property=MSINSTALLER 
 ExeCommand='[SourceDir]' Return=ignore/CustomAction

 . However once the DB starts to install it comes up with the error message.

 Another installation is in progress. You must complete that...

 Is there any way around this, can someone suggest another way of doing 
 it that avoids this problem.

 Many thanks in advance.

 Graham



 -
 SF.Net email is sponsored by:
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services
 for just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
   

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Launching MSI from MSI

2007-12-17 Thread Graham Vickrage
I am a newbie and am strugglilng with the following problem.

I need to install a 3rd party DB (postgresql) as part of my installation 
proceedure. I have figured out how to do this silently using a .bat file 
to launch the DB msi from my msi using

Property Id='MSINSTALLER'C:\temp\WixUI\InstallPG.bat/Property
CustomAction Id=ManagedInstall Property=MSINSTALLER 
ExeCommand='[SourceDir]' Return=ignore/CustomAction

. However once the DB starts to install it comes up with the error message.

Another installation is in progress. You must complete that...

Is there any way around this, can someone suggest another way of doing 
it that avoids this problem.

Many thanks in advance.

Graham



-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users