Re: [WiX-users] ServiceInstall does nothing in WiX 3.5?
In my experience all services are installed in a stopped state - getting them started it usually the problem! That ServiceControl looks fine from a WiX 3.0 point of view, if ServiceControl/@Start is not optional in 3.5 I would say that is a bug. Neil -Original Message- From: Navid Azimi-Garakani [mailto:naz...@microsoft.com] Sent: 05 May 2010 04:39 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] ServiceInstall does nothing in WiX 3.5? Any ideas on how to install a service in a stopped state? -Original Message- From: Navid Azimi-Garakani [mailto:naz...@microsoft.com] Sent: Thursday, April 29, 2010 5:56 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] ServiceInstall does nothing in WiX 3.5? Okay, this has been driving me crazy. It looks like I cannot install a service unless I have a ServiceControl element with Start=install associated. In other words, it seems impossible to install a service in a stopped state. Is this not a supported scenario? On WiX 3.5.1623.0, the following snippet does not work because it is missing a Start=install attribute. Component Id=$(var.ProjectName)ServiceInstaller Guid=C5A1BE3B-C831-4220-A184-81797B2C9F48 CreateFolder / ServiceInstall Id=$(var.ProjectName)ServiceInstall Name=$(var.ProjectName) DisplayName=$(var.ProjectName) Type=ownProcess Start=auto ErrorControl=normal Description=... Account=NT AUTHORITY\NETWORK SERVICE Vital=yes / ServiceControl Id=$(var.ProjectName)ServiceControl Name=$(var.ProjectName) Stop=both Wait=yes Remove=uninstall / /Component Is there a recommend way to install a service in a stopped state? Should I open a bug? Thanks, Navid -Original Message- From: Bob Arnson [mailto:b...@joyofsetup.com] Sent: Thursday, April 29, 2010 5:58 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] ServiceInstall does nothing in WiX 3.5? On 4/28/2010 1:35 AM, Navid Azimi-Garakani wrote: MSI (s) (24:DC) [22:30:46:016]: Doing action: InstallServices MSI (s) (24:DC) [22:30:46:016]: Note: 1: 2205 2: 3: ActionText Action start 22:30:46: InstallServices. Action ended 22:30:46: InstallServices. Return value 1. That's the log from the script generation phase; check later in the log for the execution phase. The sequence conditions were updated as such: Not necessary. -- sig://boB http://joyofsetup.com/ -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Accessing Custom Table
Hi Guys, I'm trying to access a custom table via a custom action. I found an article on the Internet (http://blogs.technet.com/alexshev/archive/2008/02/14/from-msi-to-wix-part-6-customizing-installation-using-custom-tables.aspx) but I get the Message Msi API Error: OpenView,Sql Line 10, Column 11 and don't know what to do with. So you see that my script don't like the OpenView-Method. I have no other idea... Greetings Thomas PS: Here is the code of my customaction: CustomAction Id='LoadFeatureTable' Script='vbscript' ![CDATA[ Dim Database Set Database = Session.Database If Database Is Nothing Then MsgBox Error while loading Database End If Dim View Set View = Database.OpenView(SELECT * FROM `CyberFeatures`) 'View.Execute 'Dim Record 'Set Record = View.Fetch 'If View Is Nothing Then 'MsgBox Error while loading View 'Set Database = Nothing 'EndIf 'Do Until Record Is Nothing 'MsgBox ID: Record.StringData(1) \nSerial: Record.StringData(2) \nName: Record.StringData(3) 'Set Record = View.Fetch 'Loop ]] /CustomAction -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Custom Table Sorting?
Hello All, Is it possible to sort a custom table using wix code? Best regards, Houssam Hamdan -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Browse Dialog from Custom Dialog
I have a pretty simple dialog with two text boxes right now. I would like to add a text box, with a button next to it, that if pressed launches a standard wix browse dialog, and then populates my new textbox with the folder path selected from the browse dialog. I've attempted this a few times but can't seem to get it right. Help? Thanks! Fragment UI Dialog Id=ADlg Width=370 Height=270 Title=[ProductName] NoMinimize=yes Control Id=txtServer Type=Text X=45 Y=60 Width=100 Height=17 TabSkip=no Text=amp;Server: / Control Id=edtServer Type=Edit X=45 Y=80 Width=220 Height=17 Property=SERVER Text=[SERVER] / Control Id=txtInstance Type=Text X=45 Y=100 Width=100 Height=17 TabSkip=no Text=amp;Instance: / Control Id=edtInstance Type=Edit X=45 Y=120 Width=220 Height=17 Property=INSTANCE Text=[INSTANCE] / Control Id=Back Type=PushButton X=180 Y=243 Width=56 Height=17 Text=amp;Back Publish Event=NewDialog Value=WelcomeDlg1/Publish /Control Control Id=Next Type=PushButton X=236 Y=243 Width=56 Height=17 Default=yes Text=amp;Next !--Publish Event=SetTargetPath Value=[_BrowseProperty]1/Publish-- Publish Event=NewDialog Value=VerifyReadyDlg1/Publish /Control Control Id=Cancel Type=PushButton X=304 Y=243 Width=56 Height=17 Cancel=yes Text=Cancel Publish Event=SpawnDialog Value=CancelDlg1/Publish /Control Control Id=BannerBitmap Type=Bitmap X=0 Y=0 Width=370 Height=44 TabSkip=no Text=WixUI_Bmp_Banner / Control Id=Description Type=Text X=25 Y=23 Width=280 Height=15 Transparent=yes NoPrefix=yes /Control Control Id=BottomLine Type=Line X=0 Y=234 Width=370 Height=0 / Control Id=BannerLine Type=Line X=0 Y=44 Width=370 Height=0 / /Dialog /UI /Fragment The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Custom Table Sorting?
Table order in MSI is not guranteed. Order is typically added by using a Sequence column and having the code that reads the table ORDER BY that column. On Wed, May 5, 2010 at 7:22 AM, Houssam Hamdan houssam.ham...@netiks.comwrote: Hello All, Is it possible to sort a custom table using wix code? Best regards, Houssam Hamdan -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- virtually, Rob Mensching - http://RobMensching.com LLC -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Need help diagnosing Microsoft Run Time Merge Module failures
When doing an installation on an end user's XP machine, the installation failed when trying to do something with the MS VC90 merge modules. We install the microsoft_vc90_crt_x86.msm, microsoft_vc90_mfc_x86.msm and corresponding policy merge modules. Here is the portion of the verbose log from the installation: We have no idea why the SxsInstallCA action is failing or any idea on steps to take to track it down since this is a Microsoft supplied component. Does any one have any suggestions on how to find out why this is failing? . . . Action 13:02:29: InstallInitialize. Action start 13:02:29: InstallInitialize. MSI (s) (2C:88) [13:02:29:500]: Machine policy value 'AlwaysInstallElevated' is 0 MSI (s) (2C:88) [13:02:29:500]: User policy value 'AlwaysInstallElevated' is 0 MSI (s) (2C:88) [13:02:29:500]: BeginTransaction: Locking Server MSI (s) (2C:88) [13:02:29:500]: Machine policy value 'LimitSystemRestoreCheckpointing' is 0 MSI (s) (2C:88) [13:02:29:500]: Note: 1: 1715 2: XYZ Utility x.y.z MSI (s) (2C:88) [13:02:29:500]: Note: 1: 2205 2: 3: Error MSI (s) (2C:88) [13:02:29:500]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1715 MSI (s) (2C:88) [13:02:29:500]: Calling SRSetRestorePoint API. dwRestorePtType: 0, dwEventType: 102, llSequenceNumber: 0, szDescription: Installed XYZ Utility x.y.z. MSI (s) (2C:88) [13:02:33:593]: The call to SRSetRestorePoint API succeeded. Returned status: 0, llSequenceNumber: 904. MSI (s) (2C:88) [13:02:33:593]: Server not locked: locking for product {E67C9725-A794- 4BD2-B0EA-986AC036158B} Action ended 13:02:33: InstallInitialize. Return value 1. MSI (s) (2C:88) [13:02:33:640]: Doing action: SxsInstallCA MSI (s) (2C:88) [13:02:33:640]: Note: 1: 2205 2: 3: ActionText Action 13:02:33: SxsInstallCA. Action start 13:02:33: SxsInstallCA. MSI (s) (2C:88) [13:02:33:640]: Creating MSIHANDLE (14) of type 790542 for thread 3720 MSI (s) (2C:40) [13:02:33:640]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI1C.tmp, Entrypoint: CustomAction_SxsMsmInstall MSI (s) (2C:40) [13:02:33:671]: Closing MSIHANDLE (14) of type 790542 for thread 3720 Action ended 13:02:33: SxsInstallCA. Return value 3. MSI (s) (2C:88) [13:02:33:687]: Machine policy value 'DisableRollback' is 0 MSI (s) (2C:88) [13:02:33:687]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollbac k\Scripts 3: 2 MSI (s) (2C:88) [13:02:33:687]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollbac k\Scripts 3: 2 MSI (s) (2C:88) [13:02:33:687]: Calling SRSetRestorePoint API. dwRestorePtType: 13, dwEventType: 103, llSequenceNumber: 904, szDescription: . MSI (s) (2C:88) [13:02:34:140]: The call to SRSetRestorePoint API succeeded. Returned status: 0. MSI (s) (2C:88) [13:02:34:140]: Unlocking Server Action ended 13:02:34: INSTALL. Return value 3. . . . Any help is very much appreciated. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] IIS error during Repair Installation?
I have build a sample Wix project which sets up a IIS website on Windows 2008 server IIS7.0.6 It is OK for a fresh install, and the IIS is well configured as I expected. But if I am doing a maintenance installation(repair) The install ends because of errors. Here is the log message: MSI (s) (B8:C0) [10:08:38:983]: Executing op: ActionStart(Name=CommitIIS7ConfigTransaction,Description=Committing IIS Config Transaction,) Action 10:08:38: CommitIIS7ConfigTransaction. Committing IIS Config Transaction MSI (s) (B8:C0) [10:08:38:986]: Executing op: CustomActionSchedule(Action=CommitIIS7ConfigTransaction,ActionType=11777 ,Source=BinaryData,Target=**,CustomActionData=**) MSI (s) (B8:C0) [10:08:38:987]: Executing op: ActionStart(Name=WriteIIS7ConfigChanges,Description=Installing Config Keys and Values,) Action 10:08:38: WriteIIS7ConfigChanges. Installing Config Keys and Values MSI (s) (B8:C0) [10:08:38:989]: Executing op: CustomActionSchedule(Action=WriteIIS7ConfigChanges,ActionType=11265,Sour ce=BinaryData,Target=**,CustomActionData=**) MSI (s) (B8:10) [10:08:38:995]: Invoking remote custom action. DLL: C:\Windows\Installer\MSID0AF.tmp, Entrypoint: WriteIIS7ConfigChanges WriteIIS7ConfigChanges: Error 0x800700b7: Failed add application VDir element WriteIIS7ConfigChanges: Error 0x800700b7: Failed to create vdir for application WriteIIS7ConfigChanges: Error 0x800700b7: Failed to configure IIS VDir. WriteIIS7ConfigChanges: Error 0x800700b7: WriteIIS7ConfigChanges Failed. Action ended 10:08:39: InstallFinalize. Return value 3. MSI (s) (B8:C0) [10:08:39:093]: User policy value 'DisableRollback' is 0 MSI (s) (B8:C0) [10:08:39:093]: Machine policy value 'DisableRollback' is 0 MSI (s) (B8:C0) [10:08:39:095]: Executing op: Header(Signature=1397708873,Version=405,Timestamp=1017532692,LangId=1033 ,Platform=0,ScriptType=2,ScriptMajorVersion=21,ScriptMinorVersion=4,Scri ptAttributes=0) MSI (s) (B8:C0) [10:08:39:096]: Executing op: DialogInfo(Type=0,Argument=1033) MSI (s) (B8:C0) [10:08:39:096]: Executing op: DialogInfo(Type=1,Argument=Foobar 1.0) MSI (s) (B8:C0) [10:08:39:096]: Executing op: RollbackInfo(,RollbackAction=Rollback,RollbackDescription=Rolling back action:,RollbackTemplate= It seems reconfigure an existing IIS webapp/webdir fails. I have tried on Wix version 3.5.1602 and 3.5.1623, and neither works. Here is my sample code: Directory Id='TARGETDIR' Name='SourceDir' Directory Id='ProgramFilesFolder' Name='PFiles' Directory Id='InstallDir' Name='Acme' Component Id='default.htmlComponent' Guid='{C134F063-3A6F-43a5-97EE-9F3FFC67B7C6}' File Id='default.htmFile' Name='default.htm' KeyPath='yes' DiskId='1' Source='default.htm' / /Component /Directory /Directory Component Id='TestWebVirtualDirComponent' Guid='{D9821C11-BB9B-4c77-9289-B0128AF5F9C9}' IIS:WebVirtualDir Id='TestWebVirtualDir' Alias='Test' Directory='InstallDir' WebSite='DefaultWebSite' IIS:WebApplication Id='TestWebApplication' Name='Test' / /IIS:WebVirtualDir /Component /Directory IIS:WebSite Id='DefaultWebSite' Description='Default Web Site' IIS:WebAddress Id='AllUnassigned' Port='80' / /IIS:WebSite -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] ServiceInstall does nothing in WiX 3.5?
You can add the ServiceInstall element by itself without the ServiceControl. Add the ServiceInstall in the same component that defines service file. The service file needs to be the KeyPath. I would recommend not having any other files in the components, which is good practice anyway. Something like this should work fine. Component Id=TheServiceComponent Guid={GUID HERE} CreateFolder / File Id=TheServiceExe KeyPath=yes Source=.\thefile.exe / ServiceInstall Id=TheServiceInstall Name=SomeServiceName DisplayName=The Service Display Name Start=disabled Type=ownProcess Account=LocalSystem Interactive=no ErrorControl=normal/ /Component -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/ServiceInstall-does-nothing-in-WiX-3-5-tp4972774p5012380.html Sent from the wix-users mailing list archive at Nabble.com. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] managed custom action cannot access target directory
I have written a deferred CA which I need to manipulate a file that is placed in the target-directory, at the end of the install. What is weird is that the path is correctly evaluated in my logging messages, but when I use the path to open a file, it says FILE NOT FOUND, even though I KNOW the file is there. I put in some extra logging, to enumerate the contents of the folder to prove that the file DOES exist, and I got this surprising result: CustomActionData: APPCONFIGPATH = C:\Program Files\Company\Client\Client.Windows.exe.config SECTIONTOENCRYPT = secureAppSettings Attempting to load 'C:\Program Files\Company\Client\Client.Windows.exe.config', to encrypt section 'secureAppSettings'. Configuration file 'C:\Program Files\Company\Client\Client.Windows.exe.config' was not found, have you scheduled the CA to execute after files are installed? Enumerating files in 'C:\Windows\assembly\GAC_MSIL\Microsoft.Deployment.WindowsInstaller\3.0. 0.0__ce35f76fcda82bad'... - Microsoft.Deployment.WindowsInstaller.dll As you can see, I am enumerating my target folder, but as soon as I start operating on the filesystem (such as Directory.GetFiles()), the .net runtime resolves all my queries to the GAC path where Microsoft.Deployment.WindowsInstaller.dll lives!!! What is up with that? Why am I being sandboxed like this?? -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] managed custom action cannot access target directory
I have written a deferred CA which I need to manipulate a file that is placed in the target-directory, at the end of the install. What is weird is that the path is correctly evaluated in my logging messages, but when I use the path to open a file, it says FILE NOT FOUND, even though I KNOW the file is there. I put in some extra logging, to enumerate the contents of the folder to prove that the file DOES exist, and I got this surprising result: CustomActionData: APPCONFIGPATH = C:\Program Files\Company\Client\Client.Windows.exe.config SECTIONTOENCRYPT = secureAppSettings Attempting to load 'C:\Program Files\Company\Client\Client.Windows.exe.config', to encrypt section 'secureAppSettings'. Configuration file 'C:\Program Files\Company\Client\Client.Windows.exe.config' was not found, have you scheduled the CA to execute after files are installed? Enumerating files in 'C:\Windows\assembly\GAC_MSIL\Microsoft.Deployment.WindowsInstaller\3.0.0.0__ce35f76fcda82bad'... - Microsoft.Deployment.WindowsInstaller.dll As you can see, I am enumerating my target folder, but as soon as I start operating on the filesystem (such as Directory.GetFiles()), the .net runtime resolves all my queries to the GAC path where Microsoft.Deployment.WindowsInstaller.dll lives!!! What is up with that? Why am I being sandboxed like this?? -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] managed custom action cannot access target directory
I found the problem. I had to expand my properties (session.Format(string)) during my immediate CA, so that the deferred CA gets the actual path values, not the path 'tokens'. Adam Langley Please consider the environment before printing this email! -Original Message- From: Adam Langley [mailto:alang...@winscribe.com] Sent: Thursday, 6 May 2010 3:35 p.m. To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] managed custom action cannot access target directory I have written a deferred CA which I need to manipulate a file that is placed in the target-directory, at the end of the install. What is weird is that the path is correctly evaluated in my logging messages, but when I use the path to open a file, it says FILE NOT FOUND, even though I KNOW the file is there. I put in some extra logging, to enumerate the contents of the folder to prove that the file DOES exist, and I got this surprising result: CustomActionData: APPCONFIGPATH = C:\Program Files\Company\Client\Client.Windows.exe.config SECTIONTOENCRYPT = secureAppSettings Attempting to load 'C:\Program Files\Company\Client\Client.Windows.exe.config', to encrypt section 'secureAppSettings'. Configuration file 'C:\Program Files\Company\Client\Client.Windows.exe.config' was not found, have you scheduled the CA to execute after files are installed? Enumerating files in 'C:\Windows\assembly\GAC_MSIL\Microsoft.Deployment.WindowsInstaller\3.0.0.0__ce35f76fcda82bad'... - Microsoft.Deployment.WindowsInstaller.dll As you can see, I am enumerating my target folder, but as soon as I start operating on the filesystem (such as Directory.GetFiles()), the .net runtime resolves all my queries to the GAC path where Microsoft.Deployment.WindowsInstaller.dll lives!!! What is up with that? Why am I being sandboxed like this?? -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users