Re: [WiX-users] Installing certificate in the 'Personal' store

2014-12-31 Thread ronif
Thanks for all the answers!

one more question:
How can I avoid leaving the password for my certificate in plaintext @ the
element?
Is there a way to encrypt it?

(and you were right about the File tag, I replaced it with CreateFolder
/ because every component needs to make sure it has a directory/file/...)



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Installing-certificate-in-the-Personal-store-tp7598665p7598684.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Text files

2014-12-31 Thread Will Saxon
I did something like this for a small project last week by writing a custom
action. In my case, I had very specific changes to make (single line
changes based on UI responses), so I wrote an action for each one with a
private method implementing the boilerplate part of the change. It ended up
being pretty easy to do.

On Wed, Dec 31, 2014 at 2:30 AM, Majcica, Mario 
mario.majc...@bakerhughes.com wrote:

 Hi all,

 I have a need to remove some lines of text out of the .txt files I'm
 deploying via wix. This is pretty simple to do with XML files and I was
 wondering how to do it when it comes to plain text files.
 Any suggestion is welcome as seems google has nothing interesting to
 propose on this argument.

 Thanks

 Mario Majcica


 --
 Dive into the World of Parallel Programming! The Go Parallel Website,
 sponsored by Intel and developed in partnership with Slashdot Media, is
 your
 hub for all things parallel software development, from weekly thought
 leadership blogs to news, videos, case studies, tutorials and more. Take a
 look and join the conversation now. http://goparallel.sourceforge.net
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Installing certificate in the 'Personal' store

2014-12-31 Thread Nick Ramirez
Shouldn't need CreateFolder either.

Can you use a Property to store the password? Put the Hidden attribute on
it. I'd check the log after that to make sure it's hidden. 

I am assuming the the IisExtension hides its custom action data already
(CustomAction/@HideTarget).



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Installing-certificate-in-the-Personal-store-tp7598665p7598687.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] WiX books $5 until Jan 6

2014-12-31 Thread Nick Ramirez
I saw this and thought I'd pass it along. Books on the Packt Publishers
website are $5 until Jan 6. Includes the WiX book and the pre-release of the
new WiX Cookbook.

www.packtpub.com/all/?search=wix





--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/WiX-books-5-until-Jan-6-tp7598689.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Adding service installation to wix installer

2014-12-31 Thread Phil Wilson
In general you just add your dependent Dlls as components under that
DirectoryRef that has the service in it. Then they get installed to
the same folder.  The more complicated issue is that you named things
(like sql lite) that often have their own redist packages. For
example, Log4Net seems to come from Crystal Reports, perhaps they have
a merge module you can include, maybe this
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0.zip
---
Phil Wilson


On Tue, Dec 30, 2014 at 6:03 PM, Justin Dyer justin.p.d...@gmail.com wrote:
 I am completely new to wix, so bare with me here. I have followed a guide
 here
 http://nicholasarmstrong.com/2014/08/sideloading-windows-8-apps-with-wix/
 to create an installer that sideloads a windows 8.1 application. I have
 that working after messing with it for a while. I also want my wix
 installer to install a service. My service has a number of dependency DLLs
 such as log4net, sqlite, etc. I tried following this guide
 http://www.talksharp.com/wix-toolset-install-windows-service to integrate
 what I saw there into my existing installer that does the sideloading. At
 first, the installer was place the service executable in the installation
 directory, but there would not be any of the included DLLs necessary for it
 to run. I am just lost at this point trying to take those two examples and
 merge them into what I want working.

 I have added the service project as a reference to my wix project.

 I have also added this to my wixproj file:
 PropertyGroup
   !-- Service file harvesting --
   ServiceDir..\PRISMContingencyService\bin\$(Configuration)\/ServiceDir

 DefineConstants$(DefineConstants);ServiceDir=$(ServiceDir)/DefineConstants
   /PropertyGroup
 ItemGroup
 !-- Harvest service --
 HarvestDirectory Include=$(ServiceDir)
   InProjectfalse/InProject
   DirectoryRefIdINSTALLFOLDER/DirectoryRefId
   ComponentGroupNameComponentGroup.Service/ComponentGroupName
   PreprocessorVariablevar.ServiceDir/PreprocessorVariable
   SuppressRootDirectorytrue/SuppressRootDirectory
 /HarvestDirectory
   /ItemGroup


 In the config.wxi file I have a number of lines including:
 ?define ServiceExeName = PRISMContingencyService.exe ?



 And I think this is the relevant part in the Setup.wxs file that I can't
 figure out:
 Feature Id=ProductFeature Title=Sideload PRISM Contingency App
 Level=1
   ComponentGroupRef Id=ComponentGroup.App /
   ComponentGroupRef Id=ComponentGroup.PowerShellScripts /
   ComponentGroupRef Id=ComponentGroup.Service/
   !--ComponentRef
 Id=$(var.PRISMContingencyService.TargetFileName)/--
 /Feature

 UIRef Id=WixUI_Minimal /
   /Product

   Fragment
 Directory Id=TARGETDIR Name=SourceDir
   Directory Id=ProgramFilesFolder
 Directory Id=INSTALLFOLDER Name=$(var.InstallFolderName) /
   /Directory
 /Directory

 !-- New stuff here --
 DirectoryRef Id=INSTALLFOLDER
   !-- Create a single component which is the TestService.exe file --
   Component Id=Component.ServiceComponent
 !-- Copies the TestService.exe file using the project reference
 preprocessor variables --
 File Id=File.ServiceFile
 Source=[INSTALLFOLDER]\$(var.ServiceExeName) KeyPath=yes /
 !-- Remove all files from the INSTALLFOLDER on uninstall --
 !--RemoveFile Id=ALLFILES Name=*.* On=both /--
 !-- Tell WiX to install the Service --
 ServiceInstall Id=ServiceInstaller
 Type=ownProcess
 Name=PRISMContingencyService
 DisplayName=PRISMContingencyService
 Description=Service for the PRISM Contingency Windows
 Application.
 Start=auto
 ErrorControl=normal
 Account=localSystem
 Vital=yes/
 !-- Tell WiX to start the Service --
 ServiceControl Id=StartService Start=install Stop=both
 Remove=uninstall Name=PRISMContingencyService Wait=yes /
   /Component
 /DirectoryRef
   /Fragment

 --
 Dive into the World of Parallel Programming! The Go Parallel Website,
 sponsored by Intel and developed in partnership with Slashdot Media, is your
 hub for all things parallel software development, from weekly thought
 leadership blogs to news, videos, case studies, tutorials and more. Take a
 look and join the conversation now. http://goparallel.sourceforge.net
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought

Re: [WiX-users] Adding service installation to wix installer

2014-12-31 Thread Justin Dyer
I followed the same pattern as I did with my windows app by adding wixproj
with this. Shouldn't this have copied over my files?

ItemGroup
!-- Harvest service --
HarvestDirectory Include=$(ServiceDir)
  InProjectfalse/InProject
  DirectoryRefIdINSTALLFOLDER/DirectoryRefId
  ComponentGroupNameComponentGroup.Service/ComponentGroupName
  PreprocessorVariablevar.ServiceDir/PreprocessorVariable
  SuppressRootDirectorytrue/SuppressRootDirectory
/HarvestDirectory
  /ItemGroup

PropertyGroup
  !-- Service file harvesting --
  ServiceDir..\PRISMContingencyService\bin\$(Configuration)\/ServiceDir

DefineConstants$(DefineConstants);ServiceDir=$(ServiceDir)/DefineConstants
  /PropertyGroup

On Wed, Dec 31, 2014 at 4:42 PM, Phil Wilson phildgwil...@gmail.com wrote:

 In general you just add your dependent Dlls as components under that
 DirectoryRef that has the service in it. Then they get installed to
 the same folder.  The more complicated issue is that you named things
 (like sql lite) that often have their own redist packages. For
 example, Log4Net seems to come from Crystal Reports, perhaps they have
 a merge module you can include, maybe this

 http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0.zip
 ---
 Phil Wilson


 On Tue, Dec 30, 2014 at 6:03 PM, Justin Dyer justin.p.d...@gmail.com
 wrote:
  I am completely new to wix, so bare with me here. I have followed a guide
  here
 
 http://nicholasarmstrong.com/2014/08/sideloading-windows-8-apps-with-wix/
  to create an installer that sideloads a windows 8.1 application. I have
  that working after messing with it for a while. I also want my wix
  installer to install a service. My service has a number of dependency
 DLLs
  such as log4net, sqlite, etc. I tried following this guide
  http://www.talksharp.com/wix-toolset-install-windows-service to
 integrate
  what I saw there into my existing installer that does the sideloading. At
  first, the installer was place the service executable in the installation
  directory, but there would not be any of the included DLLs necessary for
 it
  to run. I am just lost at this point trying to take those two examples
 and
  merge them into what I want working.
 
  I have added the service project as a reference to my wix project.
 
  I have also added this to my wixproj file:
  PropertyGroup
!-- Service file harvesting --
 
  ServiceDir..\PRISMContingencyService\bin\$(Configuration)\/ServiceDir
 
 
 DefineConstants$(DefineConstants);ServiceDir=$(ServiceDir)/DefineConstants
/PropertyGroup
  ItemGroup
  !-- Harvest service --
  HarvestDirectory Include=$(ServiceDir)
InProjectfalse/InProject
DirectoryRefIdINSTALLFOLDER/DirectoryRefId
ComponentGroupNameComponentGroup.Service/ComponentGroupName
PreprocessorVariablevar.ServiceDir/PreprocessorVariable
SuppressRootDirectorytrue/SuppressRootDirectory
  /HarvestDirectory
/ItemGroup
 
 
  In the config.wxi file I have a number of lines including:
  ?define ServiceExeName = PRISMContingencyService.exe ?
 
 
 
  And I think this is the relevant part in the Setup.wxs file that I can't
  figure out:
  Feature Id=ProductFeature Title=Sideload PRISM Contingency App
  Level=1
ComponentGroupRef Id=ComponentGroup.App /
ComponentGroupRef Id=ComponentGroup.PowerShellScripts /
ComponentGroupRef Id=ComponentGroup.Service/
!--ComponentRef
  Id=$(var.PRISMContingencyService.TargetFileName)/--
  /Feature
 
  UIRef Id=WixUI_Minimal /
/Product
 
Fragment
  Directory Id=TARGETDIR Name=SourceDir
Directory Id=ProgramFilesFolder
  Directory Id=INSTALLFOLDER Name=$(var.InstallFolderName) /
/Directory
  /Directory
 
  !-- New stuff here --
  DirectoryRef Id=INSTALLFOLDER
!-- Create a single component which is the TestService.exe file
 --
Component Id=Component.ServiceComponent
  !-- Copies the TestService.exe file using the project reference
  preprocessor variables --
  File Id=File.ServiceFile
  Source=[INSTALLFOLDER]\$(var.ServiceExeName) KeyPath=yes /
  !-- Remove all files from the INSTALLFOLDER on uninstall --
  !--RemoveFile Id=ALLFILES Name=*.* On=both /--
  !-- Tell WiX to install the Service --
  ServiceInstall Id=ServiceInstaller
  Type=ownProcess
  Name=PRISMContingencyService
  DisplayName=PRISMContingencyService
  Description=Service for the PRISM Contingency Windows
  Application.
  Start=auto
  ErrorControl=normal
  Account=localSystem
  Vital=yes/
  !-- Tell WiX to start the Service --
  ServiceControl Id=StartService Start=install Stop=both
  Remove=uninstall Name=PRISMContingencyService Wait=yes /
/Component
  /DirectoryRef
/Fragment