[WiX-users] SqlDatabase install optional and SqlString execute
Hi, I want to adjust my installer to have 2 different modes: 1. User wants to create database and then I run a set of SqlString 2. User uses preexisting database and then I run the same set of SqlString Right now I have a SqlDatabase element in a component that creates the db (only when a certain feature is selected). And I have a SqlDatabase element in a feature that is just a locator (that will be evaluated always). However I'm not sure how to make the non component SqlDatabase locator not error when the msi is run if we are in db creation mode. Or would it be execute after the SqlDatabase is created? Also is wix smart enough to only run SqlString elements after a SqlDatabase is created? Thanks, Mike -- Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] SqlDatabase install optional and SqlString execute
The cancel will apply to only the DB creation, not to the whole installer, right? -Original Message- From: Michael Osmond [mailto:mosm...@baytech.com.au] Sent: Monday, April 11, 2011 3:46 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] SqlDatabase install optional and SqlString execute Mike, SqlDatabase has an option ConfirmOverwrite, if set to yes the installer will prompt if it finds a database already created, and allows you to cancel or continue. Using this option the installer only needs to deal with option 1 and you get 2 for free. If you want to be defensive against the pre-existing database actually having objects in it, then in one of your SqlStrings check for a table(s) existing and then use RAISERROR to cause the installer to fail and complain that the pre-existing database is populated already. This can be important in restore scenarios. Michael -Original Message- From: Mike Menaker [mailto:mi...@voicebox.com] Sent: Tuesday, 12 April 2011 3:24 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] SqlDatabase install optional and SqlString execute Hi, I want to adjust my installer to have 2 different modes: 1. User wants to create database and then I run a set of SqlString 2. User uses preexisting database and then I run the same set of SqlString Right now I have a SqlDatabase element in a component that creates the db (only when a certain feature is selected). And I have a SqlDatabase element in a feature that is just a locator (that will be evaluated always). However I'm not sure how to make the non component SqlDatabase locator not error when the msi is run if we are in db creation mode. Or would it be execute after the SqlDatabase is created? Also is wix smart enough to only run SqlString elements after a SqlDatabase is created? Thanks, Mike -- Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] SqlDatabase install optional and SqlString execute
Ok, thanks. I guess my question is when the locator is resolved. The scenario you described is exactly what I have. I just wasn't sure if the locator would try and resolve itself before the db is created in the scenario where the db doesn't exist yet. I'm guessing that the locator will be resolved when the first SqlString in the 2nd component tries to run against it? Thanks. -Original Message- From: Michael Osmond [mailto:mosm...@baytech.com.au] Sent: Monday, April 11, 2011 5:13 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] SqlDatabase install optional and SqlString execute No unfortunately the cancel is for the whole installer. Just re-read the original message, and I think you can make your scenario work. Have two components and a non component SqlDatabase locator: - the first component has the SqlDatabase element and SqlString elements for the MSI to create the database. Only put the things in here that matter when the database is created. - the second component has the SqlString elements to be run when there is a pre-existing database or when the MSI creates the database - so anything that is common to both scenarios. Link each of the SqlString elements here to the non component SqlDatabase locator.You can put a condition on this component so that if you are not creating the database at all the component is not installed. Use the sequence number to ensure the order of the scripts is correct - the sequence number is universal so seq=1 in Component B runs before seq=2 in Component A. The MSI will do the database creation step first before any SqlString elements are run - it is that smart. This assumes that both SqlDatabase elements resolve to the same database. Hope this helps Michael -Original Message- From: Mike Menaker [mailto:mi...@voicebox.com] Sent: Tuesday, 12 April 2011 9:47 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] SqlDatabase install optional and SqlString execute The cancel will apply to only the DB creation, not to the whole installer, right? -Original Message- From: Michael Osmond [mailto:mosm...@baytech.com.au] Sent: Monday, April 11, 2011 3:46 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] SqlDatabase install optional and SqlString execute Mike, SqlDatabase has an option ConfirmOverwrite, if set to yes the installer will prompt if it finds a database already created, and allows you to cancel or continue. Using this option the installer only needs to deal with option 1 and you get 2 for free. If you want to be defensive against the pre-existing database actually having objects in it, then in one of your SqlStrings check for a table(s) existing and then use RAISERROR to cause the installer to fail and complain that the pre-existing database is populated already. This can be important in restore scenarios. Michael -Original Message- From: Mike Menaker [mailto:mi...@voicebox.com] Sent: Tuesday, 12 April 2011 3:24 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] SqlDatabase install optional and SqlString execute Hi, I want to adjust my installer to have 2 different modes: 1. User wants to create database and then I run a set of SqlString 2. User uses preexisting database and then I run the same set of SqlString Right now I have a SqlDatabase element in a component that creates the db (only when a certain feature is selected). And I have a SqlDatabase element in a feature that is just a locator (that will be evaluated always). However I'm not sure how to make the non component SqlDatabase locator not error when the msi is run if we are in db creation mode. Or would it be execute after the SqlDatabase is created? Also is wix smart enough to only run SqlString elements after a SqlDatabase is created? Thanks, Mike -- Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] ComboBox won't display option
Hi, I have this combobox in my ui/dialog file Control Id=FirstDay Type=ComboBox X=21 Y=150 Width=190 Height=150 TabSkip=no Property=TTSBOXNAME ComboList=yes Sorted=yes ComboBox Property=TTSBOXNAME ListItem Text=Sunday Value=0 / ListItem Text=Monday Value=1 / ListItem Text=Tuesday Value=2 / ListItem Text=Wednesday Value=3 / ListItem Text=Thursday Value=4 / ListItem Text=Friday Value=5 / ListItem Text=Saturday Value=6 / /ComboBox /Control However I cannot get the option to display. The combobox will, but when it drops down it doesn't display anything. Thanks, Mike - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. 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] Problems with copy file
Even with all this I'm not really sure what I need to do to make this work. I have multiple wix files that need to know PATH/temp. But the user only enters PATH. Not sure how I'm going to make a Dir element out of PATH. -Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Sent: Saturday, October 20, 2007 8:29 AM To: WiX Users Subject: Re: [WiX-users] Problems with copy file In article [EMAIL PROTECTED], Jeremy Farrell [EMAIL PROTECTED] writes: In article [EMAIL PROTECTED], Jeremy Farrell [EMAIL PROTECTED] writes: Then, assuming the documentation's correct, it needs to be set to a property which contains the required path as the doc says. In DestinationProperty=PATH which works, you've set it to the name of the property called PATH which contains a pathname. You need to create a property which contains a string giving the required path, and give the name of that property to DestinationProperty. Its not a property he needs to create, its a row in the Directory table (primary keys in the directory table are also mirrored as properties containing the resolved path, but just creating a property is not sufficient). That means the WiX help file is as wrong as it could be about this then, despite being clear and explicit - and how come DestinationProperty=PATH works? Are you sure you aren't thinking of DestinationDirectory rather than DestinationProperty? Windows Installer uses a property to identify the destination. Every entry in the Directory table gets a property to go with it. So by defining an entry in the Directory table you also get a property. You could just use a property separate from the Directory table as well. But either way you can't specy DestinationProperty or DestinationDirectory as formatted text that will resolve to the desired path. -- The Direct3D Graphics Pipeline -- DirectX 9 draft available for download http://www.xmission.com/~legalize/book/download/index.html Legalize Adulthood! http://blogs.xmission.com/legalize/ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Problems with copy file
Hi, I can't get copyfile to copy a file. Here is the element I use (PATH is a property set earlier) File Id=FILE1 Name=FILE1 LongName=MovieSearch.gram Source=$(var.SOURCEPATH)\ \ CopyFile Id=CopyFile DestinationName= FILE1 DestinationLongName=file.txt DestinationProperty=[PATH]\dir\ / /File If I use DestinationProperty=PATH it works. I have also tried DestinationProperty=PATH\dir\ What am I doing wrong? Thanks, Mike - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Problems with copy file
According to the Wix Documentation DestinationProperty String Set this value to a property that will have a value that resolves to the full path of the destination directory. The property does not have to exist in the installer database at creation time; it could be created at installation time by a custom action, on the command line, etc. This attribute cannot be specified in conjunction with DestinationDirectory. What do you mean add a Directory element. How would I do this when all I have is a path? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Sent: Friday, October 19, 2007 2:58 PM To: WiX Users Subject: Re: [WiX-users] Problems with copy file In article [EMAIL PROTECTED] m, Mike Menaker [EMAIL PROTECTED] writes: File Id=3DFILE1 Name=3DFILE1 LongName=3DMovieSearch.gram Source=3D$(var.SOURCEPATH)\ \ CopyFile Id=3DCopyFile DestinationName=3D FILE1 DestinationLongName=3Dfile.txt DestinationProperty=3D[PATH]\dir\ / /File =20 If I use DestinationProperty=3DPATH it works. I have also tried DestinationProperty=3DPATH\dir\ What am I doing wrong? DestinationProperty must be the name of a row in your Directory table, it isn't a formatted string that gives the location of the directory. So to fix your problem, add a Directory element that defines [PATH]\dir and then reference this in your CopyFile element. -- The Direct3D Graphics Pipeline -- DirectX 9 draft available for download http://www.xmission.com/~legalize/book/download/index.html Legalize Adulthood! http://blogs.xmission.com/legalize/ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Problems with copy file
How would I do this? Path is set by the user like this from the UI: Control Id=EditPath Type=Edit X=21 Y=64 Width=237 Height=17 Property=PATH It seems like I would just keep running into the problem of combining the property with a string. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Farrell Sent: Friday, October 19, 2007 3:25 PM To: WiX Users Subject: Re: [WiX-users] Problems with copy file Then, assuming the documentation's correct, it needs to be set to a property which contains the required path as the doc says. In DestinationProperty=PATH which works, you've set it to the name of the property called PATH which contains a pathname. You need to create a property which contains a string giving the required path, and give the name of that property to DestinationProperty. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Menaker Sent: Friday, October 19, 2007 11:01 PM To: Richard; WiX Users Subject: Re: [WiX-users] Problems with copy file According to the Wix Documentation DestinationProperty String Set this value to a property that will have a value that resolves to the full path of the destination directory. The property does not have to exist in the installer database at creation time; it could be created at installation time by a custom action, on the command line, etc. This attribute cannot be specified in conjunction with DestinationDirectory. What do you mean add a Directory element. How would I do this when all I have is a path? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Sent: Friday, October 19, 2007 2:58 PM To: WiX Users Subject: Re: [WiX-users] Problems with copy file In article [EMAIL PROTECTED] ologies.co m, Mike Menaker [EMAIL PROTECTED] writes: File Id=3DFILE1 Name=3DFILE1 LongName=3DMovieSearch.gram Source=3D$(var.SOURCEPATH)\ \ CopyFile Id=3DCopyFile DestinationName=3D FILE1 DestinationLongName=3Dfile.txt DestinationProperty=3D[PATH]\dir\ / /File =20 If I use DestinationProperty=3DPATH it works. I have also tried DestinationProperty=3DPATH\dir\ What am I doing wrong? DestinationProperty must be the name of a row in your Directory table, it isn't a formatted string that gives the location of the directory. So to fix your problem, add a Directory element that defines [PATH]\dir and then reference this in your CopyFile element. -- The Direct3D Graphics Pipeline -- DirectX 9 draft available for download http://www.xmission.com/~legalize/book/download/index.html Legalize Adulthood! http://blogs.xmission.com/legalize/ -- -- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- --- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Silent install won't copy in files
The problem is that the files aren't copied at all. When doing a normal graphical install they get copied over fine. Silent install they don't get copied at all. I was able to fix this problem by using the directory structure to copy in files instead of CopyFile. It is still odd that CopyFile didn't work. From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 26, 2007 1:49 AM To: Mike Menaker; wix-users@lists.sourceforge.net Subject: RE: Silent install won't copy in files What is the exact problem? I'm a little confused by what you mean when you say it isn't copying 3 files correctly? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Menaker Sent: Friday, September 14, 2007 15:03 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Silent install won't copy in files Hi, I'm having a problem with a silent install. I have a component that copies 2 files and writes to the registry however it isn't copying the 3 files correctly (yet writing the registry correctly). This is my component. Component Id=SpeechConfig DiskId=1 Guid=49861A79-A034-4e15-BA38-783D2FCC4D90 File Id=TEST_cfg Name=TEST_1.CFG LongName=Test.cfg CopyFile Id=CopyTestCfg DestinationProperty=[ProgramFilesFolder]Test\Config\ / /File File Id=USER_XML Name=user.xml LongName=user.xml CopyFile Id=CopyUserXml DestinationProperty=[ProgramFilesFolder]Test\Config\ / /File Registry Id=TEST_SETREG_ADD Root=HKLM Key=SOFTWARE\FLEXlm License Manager\TestLicensingService Name='License' Action='write' Type='string' Value='[ProgramFilesFolder]Test\license_manager\license\test.lic' / /Component Any ideas why it isn't copying in the files correctly? Thanks, Mike - 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] Silent install won't copy in files
I don't think I can use [ProgramFilesFolder] with DestinationDirectory -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frédéric Viollet Sent: Monday, September 17, 2007 12:14 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Silent install won't copy in files Mike Menaker a écrit : Hi, I'm having a problem with a silent install. I have a component that copies 2 files and writes to the registry however it isn't copying the 3 files correctly (yet writing the registry correctly). This is my component. Component Id=SpeechConfig DiskId=1 Guid=49861A79-A034-4e15-BA38-783D2FCC4D90 File Id=TEST_cfg Name=TEST_1.CFG LongName=Test.cfg CopyFile Id=CopyTestCfg DestinationProperty=[ProgramFilesFolder]Test\Config\ / /File File Id=USER_XML Name=user.xml LongName=user.xml CopyFile Id=CopyUserXml DestinationProperty=[ProgramFilesFolder]Test\Config\ / /File Registry Id=TEST_SETREG_ADD Root=HKLM Key=SOFTWARE\FLEXlm License Manager\TestLicensingService Name='License' Action='write' Type='string' Value='[ProgramFilesFolder]Test\license_manager\license\test.lic' / /Component Any ideas why it isn't copying in the files correctly? Thanks, Mike You are using the DestinationProperty attribute in the CopyFile element. Try using DestinationDirectory instead. Fred - 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] Silent install won't copy in files
When I compare the log files Here is what I got This is from working (GUI) install: MSI (s) (40:D0) [14:53:28:913]: Executing op: SetSourceFolder(Folder=C:\Program Files\TestInstall\VMP Server\ASR\MVPASRConfig\) MSI (s) (40:D0) [14:53:28:913]: Executing op: SetTargetFolder(Folder=C:\Program Files\Test\Config\) MSI (s) (40:D0) [14:53:28:913]: Executing op: FileCopy(SourceName=SpeechWorks.cfg,,DestName=SpeechWorks.cfg,Attributes=0,FileSize=968,PerTick=0,IsCompressed=0,VerifyMedia=0,CheckCRC=0,,,InstallMode=262144,,,) MSI (s) (40:D0) [14:53:28:913]: File: C:\Program Files\Test\Config\SpeechWorks.cfg; To be installed;Won't patch; No existing file MSI (s) (40:D0) [14:53:28:913]: Source for file 'SpeechWorks.cfg' is uncompressed, at 'C:\Program Files\TestInstall\VMP Server\ASR\MVPASRConfig\'. MSI (s) (40:D0) [14:53:28:913]: Note: 1: 2318 2: C:\Program Files\Test\Config\SpeechWorks.cfg This part is from unattended install: MSI (s) (40:28) [14:57:37:041]: Executing op: FileCopy(SourceName=SPEECH_1.CFG|SpeechWorks.cfg,SourceCabKey=SPEECHWorks_cfg,DestName=SpeechWorks.cfg,Attributes=0,FileSize=968,PerTick=32768,,VerifyMedia=1,CheckCRC=0,,,InstallMode=58982400,HashOptions=0,HashPart1=-1665668314,HashPart2=860919431,HashPart3=-1485459813,HashPart4=996330112,,) MSI (s) (40:28) [14:57:37:041]: File: C:\Program Files\TestInstall\VMP Server\ASR\MVPASRConfig\SpeechWorks.cfg; To be installed;Won't patch; No existing file MSI (s) (40:28) [14:57:37:041]: Source for file 'SPEECHWorks_cfg' is compressed MSI (s) (40:28) [14:57:37:041]: Note: 1: 2318 2: C:\Program Files\TestInstall\VMP Server\ASR\MVPASRConfig\SpeechWorks.cfg The only differences is from some reason it doesn't put the source/target dirs and the unattended file is compressed. Any help would be very appreciated. Thanks, Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Menaker Sent: Monday, September 17, 2007 11:35 AM To: Frédéric Viollet; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Silent install won't copy in files I don't think I can use [ProgramFilesFolder] with DestinationDirectory -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frédéric Viollet Sent: Monday, September 17, 2007 12:14 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Silent install won't copy in files Mike Menaker a écrit : Hi, I'm having a problem with a silent install. I have a component that copies 2 files and writes to the registry however it isn't copying the 3 files correctly (yet writing the registry correctly). This is my component. Component Id=SpeechConfig DiskId=1 Guid=49861A79-A034-4e15-BA38-783D2FCC4D90 File Id=TEST_cfg Name=TEST_1.CFG LongName=Test.cfg CopyFile Id=CopyTestCfg DestinationProperty=[ProgramFilesFolder]Test\Config\ / /File File Id=USER_XML Name=user.xml LongName=user.xml CopyFile Id=CopyUserXml DestinationProperty=[ProgramFilesFolder]Test\Config\ / /File Registry Id=TEST_SETREG_ADD Root=HKLM Key=SOFTWARE\FLEXlm License Manager\TestLicensingService Name='License' Action='write' Type='string' Value='[ProgramFilesFolder]Test\license_manager\license\test.lic' / /Component Any ideas why it isn't copying in the files correctly? Thanks, Mike You are using the DestinationProperty attribute in the CopyFile element. Try using DestinationDirectory instead. Fred - 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] Silent install won't copy in files
Hi, I'm having a problem with a silent install. I have a component that copies 2 files and writes to the registry however it isn't copying the 3 files correctly (yet writing the registry correctly). This is my component. Component Id=SpeechConfig DiskId=1 Guid=49861A79-A034-4e15-BA38-783D2FCC4D90 File Id=TEST_cfg Name=TEST_1.CFG LongName=Test.cfg CopyFile Id=CopyTestCfg DestinationProperty=[ProgramFilesFolder]Test\Config\ / /File File Id=USER_XML Name=user.xml LongName=user.xml CopyFile Id=CopyUserXml DestinationProperty=[ProgramFilesFolder]Test\Config\ / /File Registry Id=TEST_SETREG_ADD Root=HKLM Key=SOFTWARE\FLEXlm License Manager\TestLicensingService Name='License' Action='write' Type='string' Value='[ProgramFilesFolder]Test\license_manager\license\test.lic' / /Component Any ideas why it isn't copying in the files correctly? Thanks, Mike - 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] Problems when running installer silently from command line
What are possible issues with running an installer silently from the commandline: MSIEXEC /i MyInstaller.msi /Log LOGFILE.TXT /qn ADDLOCAL=AllMyVariables This works for almost the entire installer. However, it has a problems with an internal property that is set on a UI page (it doesn't get evaluated even though it is defaulted to false and should install something). And another is a component that doesn't rely on anything but for reason the files don't get copied and the registry is unchanged. Is there any known issues from the installer? BTW I'm using WiX 2.0 Thanks, Mike - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Problem adding assembly to GAC
I saw a thread about GACing that said: If a file is marked for the GAC, it goes there only. MSI doesn't install the file, then run gacutil or equivalent -- it uses Fusion interfaces directly to install to the GAC. Is this true? I'm still not able to get the installer to work right. The files are there but it won't recognize them unless I manually GAC them. What could I be doing wrong? Thanks, Mike From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wilson, Phil Sent: Wednesday, July 18, 2007 12:34 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Problem adding assembly to GAC Make sure that the internal name of the assembly matches the file name. If you renamed the assembly externally but its internal identity is the original name it won't install. As a check, if you try to install it to the GAC with a Visual Studio setup project the symptom of this is a build error ERROR: Assembly 'renamedassembly.dll' must have a shared name to be installed globally. I don't know if Wix makes this check at build time. ProcessorArchitecture, PublicKeyToken etc aren't used at install time if Wix does what I think it does. These values populate the MsiAssemblyName table and must reflect the real assembly because they're used at uninstall time to tell fusion to uininstall an assembly with this list of attributes. It doesn't need those attributes at install time because it has the actual assembly and can just get them. Phil Wilson From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Menaker Sent: Wednesday, July 18, 2007 10:43 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Problem adding assembly to GAC I have encountered a problem adding some assemblies to the GAC. The assembly I'm trying to add is wrapper to a COM object. When I just use TLBIMP it works fine. However I added versioning by: Using ildasm.exe to disassemble Then appending a resource file and using ilasm.exe to re assemble. However now when I use the installer the assemblies aren't found unless they are manually added to the GAC using GACUtil. One change I have noticed is that in the assembly it now notes the processor architecture as msil. However even when adding this ProcessorArchitecture=msil into the component it isn't gac'ed properly. Here is my component: Directory Id=GAC_ComponentsDir Name=GAC LongName=GlobalAssemblyCache FileSource='$(var.SOURCEPATH_COMPONENTS)' Component Id=GAC_ ASSEMBLY Guid=2CD36A99-7041-4fc2-A25F-50F02B36E042 File Id=ASSEMBLY_DLL Name=ASSEMB_2.DLL Vital=yes LongName= ASSEMBLY.dll KeyPath=yes Assembly=.net DiskId=1 / /Component Any body have any I idea what I could be doing wrong? Thanks, Mike - 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 adding assembly to GAC
I have encountered a problem adding some assemblies to the GAC. The assembly I'm trying to add is wrapper to a COM object. When I just use TLBIMP it works fine. However I added versioning by: Using ildasm.exe to disassemble Then appending a resource file and using ilasm.exe to re assemble. However now when I use the installer the assemblies aren't found unless they are manually added to the GAC using GACUtil. One change I have noticed is that in the assembly it now notes the processor architecture as msil. However even when adding this ProcessorArchitecture=msil into the component it isn't gac'ed properly. Here is my component: Directory Id=GAC_ComponentsDir Name=GAC LongName=GlobalAssemblyCache FileSource='$(var.SOURCEPATH_COMPONENTS)' Component Id=GAC_ ASSEMBLY Guid=2CD36A99-7041-4fc2-A25F-50F02B36E042 File Id=ASSEMBLY_DLL Name=ASSEMB_2.DLL Vital=yes LongName= ASSEMBLY.dll KeyPath=yes Assembly=.net DiskId=1 / /Component Any body have any I idea what I could be doing wrong? Thanks, Mike - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Problem adding assembly to GAC
I think the name is fine because I can run gacutil.exe on the .dll and get the result I need. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wilson, Phil Sent: Wednesday, July 18, 2007 12:34 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Problem adding assembly to GAC Make sure that the internal name of the assembly matches the file name. If you renamed the assembly externally but its internal identity is the original name it won't install. As a check, if you try to install it to the GAC with a Visual Studio setup project the symptom of this is a build error ERROR: Assembly 'renamedassembly.dll' must have a shared name to be installed globally. I don't know if Wix makes this check at build time. ProcessorArchitecture, PublicKeyToken etc aren't used at install time if Wix does what I think it does. These values populate the MsiAssemblyName table and must reflect the real assembly because they're used at uninstall time to tell fusion to uininstall an assembly with this list of attributes. It doesn't need those attributes at install time because it has the actual assembly and can just get them. Phil Wilson From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Menaker Sent: Wednesday, July 18, 2007 10:43 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Problem adding assembly to GAC I have encountered a problem adding some assemblies to the GAC. The assembly I'm trying to add is wrapper to a COM object. When I just use TLBIMP it works fine. However I added versioning by: Using ildasm.exe to disassemble Then appending a resource file and using ilasm.exe to re assemble. However now when I use the installer the assemblies aren't found unless they are manually added to the GAC using GACUtil. One change I have noticed is that in the assembly it now notes the processor architecture as msil. However even when adding this ProcessorArchitecture=msil into the component it isn't gac'ed properly. Here is my component: Directory Id=GAC_ComponentsDir Name=GAC LongName=GlobalAssemblyCache FileSource='$(var.SOURCEPATH_COMPONENTS)' Component Id=GAC_ ASSEMBLY Guid=2CD36A99-7041-4fc2-A25F-50F02B36E042 File Id=ASSEMBLY_DLL Name=ASSEMB_2.DLL Vital=yes LongName= ASSEMBLY.dll KeyPath=yes Assembly=.net DiskId=1 / /Component Any body have any I idea what I could be doing wrong? Thanks, Mike - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Am I using a property and condition correctly
When I set the Publish value to 1, clicking on the next button does nothing (it does the click animation but does not continue to the next dialog). Why would this happen? Should I move the set property to its on component? From: Aaron Shurts [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 6:06 PM To: Mike Menaker Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Am I using a property and condition correctly Ignore those extra spaces, I don't know where they came from. :-P Publish Property= ISWEBBOX Value=TRUE 1/Publish //aj On 5/22/07, Aaron Shurts [EMAIL PROTECTED] wrote: The condition on your publish property event appears to be the problem. If you always want this event to trigger than this text: Publish Property= ISWEBBOX Value=TRUE TRUE/Publish should read like this: Publish Property = ISWEBBOX Value= TRUE1/ Publish When you have just TRUE in there. The installer isn't really checking against anything so that condition will always evaluate to false. 1 means run this all the time. Regards, //aj On 5/22/07, Mike Menaker [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I'm not sure what I'm doing wrong. When one feature is selected it will go to a certain dialog, in this dialog I will always set a property to true. And later I will check this property in a component. Here is what I have in the dialog: Control Id = Next Type= PushButton X =236 Y =243 Width=56 Height=17 Default=yes Disabled= no Text= $(loc.WixUINext) Publish Property = ISWEBBOX Value= TRUETRUE/ Publish Publish Event = NewDialog Value= [WixUI_WEBConfigToReadyToInstall_Next]/Publish / Control And in the component: Component Id =' Comp1' Guid=' 345c09f9-f760-4700-89da-12f1a1cbf08c' KeyPath =yes DiskId=1 Condition![CDATA[ (ISWEBBOX = 'FALSE')]]/ Condition ... (I cut out the stuff here, doesn't matter) / Component Component Id =' Comp2' Guid=' 0BBCE421-BC25-46cc-8A86-3F9EAEF4A839' Condition![CDATA[ (ISWEBBOX = 'TRUE')]]/ Condition CreateFolder / ... (I cut out the stuff here, doesn't matter) /Component Any help would be much appreciated! Thanks, Mike - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Am I using a property and condition correctly
Hi, I'm not sure what I'm doing wrong. When one feature is selected it will go to a certain dialog, in this dialog I will always set a property to true. And later I will check this property in a component. Here is what I have in the dialog: Control Id=Next Type=PushButton X=236 Y=243 Width=56 Height=17 Default=yes Disabled=no Text=$(loc.WixUINext) Publish Property=ISWEBBOX Value=TRUETRUE/Publish Publish Event=NewDialog Value=[WixUI_WEBConfigToReadyToInstall_Next]/Publish /Control And in the component: Component Id='Comp1' Guid='345c09f9-f760-4700-89da-12f1a1cbf08c' KeyPath=yes DiskId=1 Condition![CDATA[(ISWEBBOX = 'FALSE')]]/Condition ... (I cut out the stuff here, doesn't matter) /Component Component Id='Comp2' Guid='0BBCE421-BC25-46cc-8A86-3F9EAEF4A839' Condition![CDATA[(ISWEBBOX = 'TRUE')]]/Condition CreateFolder / ... (I cut out the stuff here, doesn't matter) /Component Any help would be much appreciated! Thanks, Mike - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Am I publishing a property correctly?
Bump, can any one show what I'm doing incorrectly? Thanks From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Menaker Sent: Thursday, May 17, 2007 1:17 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Am I publishing a property correctly? Hi whenever I enter a specific dialog screen, I want a property to be set. I have this right now. But whenever I click next nothing happens. I tried removing the 1 but then the property doesn't get set. What am I doing wrong? Thanks, Mike Control Id=Next Type=PushButton X=236 Y=243 Width=56 Height=17 Default=yes Disabled=no Text=$(loc.WixUINext) Publish Property=ISWEBBOX Value=TRUE1/Publish Publish Event=NewDialog Value=[WixUI_WEBConfigToReadyToInstall_Next]/Publish /Control - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Setting default home directory for web site
When installing 2 applications I would like the 2nd to always be the Home Directory of the default web site on the machine it gets installed on. This works when the installation happens with 2 machines (1 application on each machine, both home directories). However when they are both on the same machine the 1st one always defaults to the home directory. How do I make it the 2nd be the home directory with out changing the install order? My install component looks like : Component Id='WebAppVirtualDirComponent' Guid='a00d460e-6304-410E-A808-E3585379EADB' CreateFolder / WebSite Id='DefaultWebSiteApp' Directory=WebAppDir Description='Default Web Site' AutoStart=yes ConfigureIfExists=yes StartOnInstall=yes Sequence=-2 WebAddress Id='AllUnassignedPorts' Port='80' / WebVirtualDir Id='WebAppVirtualDir' DirProperties=WebDirProp Directory='WebRootDir' Alias='MyApp' WebApplication Id=WebAppebApplication ParentPaths=default Name=MyApp / /WebVirtualDir /WebSite /Component - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] ASP.NET uninstall and home directory question
I'm having 2 problems: 1. My web applications that I create don't delete the virtual dirs/apps from the Default Web Site section in IIS. The folders created are gone but you can see the app in the IIS. 2. Also I'm when installing 2 applications I would like the 2nd to always be the Home Directory of the default web site on the machine it gets installed on. This works when the installation happens with 2 machines (1 application on each machine, both home directories). However when they are both on the same machine the 1st one always defaults to the home directory. How do I make it the 2nd be the home directory with out changing the install order. My install component looks like this (for both questions). Component Id='WebAppVirtualDirComponent' Guid='a00d460e-6304-410E-A808-E3585379EADB' CreateFolder / WebSite Id='DefaultWebSiteApp' Directory=WebAppDir Description='Default Web Site' AutoStart=yes ConfigureIfExists=yes StartOnInstall=yes Sequence=-2 WebAddress Id='AllUnassignedPorts' Port='80' / WebVirtualDir Id='WebAppVirtualDir' DirProperties=WebDirProp Directory='WebRootDir' Alias='MyApp' WebApplication Id=WebAppebApplication ParentPaths=default Name=MyApp / /WebVirtualDir /WebSite /Component Thanks, Mike - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users