Re: [WiX-users] Remove section using XMLConfig
Did you manage to solve this problem of extracting and comparing a substring? I was trying to do something similar and tried using the substring function, but got the error "failed to query verify path". Does anyone know if VerifyPath supports string functions like contains, string-length, substring? Thanks. Kevin Burton-8 wrote: > > My problem was similar but as I see it more complex. In my case I have the > equivalent of "DirTwo-1" and "DirTwo-2" so a simple '=' will not do I need > to take a sub string. > > Still looking for a solution. > > Thank you. > > Kevin > > Stefan Pavlik <[EMAIL PROTECTED]> wrote: >> I also realized that I should use [\[].="DirTwo"[\]] (instead of [/[] ). >> >> But it was not the problem >> >> Stefan Pavlik wrote: >> > Hi list >> > >> > I have the same problem as Kevin Burton in thread [Remove a section >> > using XmlFile] several months ago. Since I am not able to solve it >> > (even after reading the thread again and again) I am asking the same >> > question again. >> > >> > I am using Wix >> > >> > Consider following xml file: >> > >> > >> > >> > >> > DirOne >> > DirTwo >> > >> > >> > >> > >> > >> > I want to remove the line "DirTwo" from >> > the file. >> > >> > The following code does not work: >> > >> > > >File='[#XmlSettings] ' >> >Action='delete' >> >ElementPath='//dpInst/search' >> >VerifyPath='subDirectory[/[].="DirTwo"[/]]' >> >On='install' >> >Sequence='1' >> >/> >> > >> > I have already tried several other combinations of ElementPath and >> > VerifyPath values with no success. >> > Interesting is that the property ExecXmlConfig (CustomActionData for >> > ExecXmlConfig action) is even not set (in the log file). If I use >> > XMLConfig to add some lines the ExecXmlConfig property is filled >> > with some data. >> > >> > Is it possible that the Action='delete' and On='Install' is invalid >> > combination? >> > >> > Any help is appreciated. >> > >> > regards >> > >> > Stefan >> > >> >> -- >> Stefan Pavlik | [EMAIL PROTECTED] >> Whitestein Technologies s.r.o. | www.whitestein.com >> Panenska 28 | 811 03 Bratislava | Slovak Republic >> Main +421 2 5443-5502 | Direct +421 2 5930-0735 >> >> - >> 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 > > -- View this message in context: http://www.nabble.com/Remove-section-using-XMLConfig-tf4355333.html#a12529092 Sent from the wix-users mailing list archive at Nabble.com. - 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] Uninstall removes registry keys not written by installer
Hi, I am creating an installer and writing to the registry. Third-party installers might also be writing to the same location as my installer for sharing information. However, what I am seeing is that upon uninstall, even keys written by other installers are removed, not just the ones my installer installs. This is what I am trying out now: Suppose another installer creates another key, say "Software\MyApp\AnotherSubKey". When my installer uninstalls, the entire node Software\MyApp gets removed. How do I make sure that upon uninstall, only the values that are written by my installer get removed, and not those written by others? Thanks. -- View this message in context: http://www.nabble.com/Uninstall-removes-registry-keys-not-written-by-installer-tp15567828p15567828.html Sent from the wix-users mailing list archive at Nabble.com. - 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
[WiX-users] reducing file size of msi containing duplicate files
Hi, I am creating a MSI that has two features, each containing one component. The user can install either or both the features. Each component use the same source file which is to be installed to a different location. Although the component use the same source file, it seems the file size of the MSI is still doubled. If in the wxs, I remove one component totally, then the size is only about the size of 1 times the source file, instead of twice. Is there any to reduce the size of the MSI in such a scenario? Here is a sample that I have tried: Thanks for your help. Regards, Hongping - 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] custom action conditioned on selected features
Hi, I have a custom action that I want to run, but only if the user has selected and installed a specific Feature. Is there an expression or property to use to determine whether a particular Feature has been selected? Thanks, Hongping - 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] how to detect if another product is installed
Hi, I have a product A that requires another product B to be installed. B by itself does not write to any registry keys, but I have the strings for its Product Id and UpgradeCode. Is there any way for the installer A to detect whether product B is present? Thanks, Hongping - 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] timestamp difference between source files and installed files
I am getting some discrepancy between the time stamp of the source files and the actual installed files. So far, it seems to be between 1-2 seconds. For example, if in my wix I have a file source of 1:04:00pm, then after I run the MSI, the installed file becomes 1:04:02pm. This difference applies to all the installed files. I also tried just a very simple example and could reproduce the time difference on various machines. Does anyone have any ideas what might be causing this? Is there any way to specify the timestamp of the installed file explicitly? Thanks, Hongping - 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] writing and restoring registry key
My installer needs to increment the integer value of an existing registry key on the system, but it also needs to restore the value back upon uninstall. Is there any way to achieve this? Thanks, Hongping - 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] using xmlConfig to conditionally set attribute value
Hi, I am trying to add the following actions during install (and the reverse during uninstall) to modify the string value of an attribute conditionally: 1. Check web.config to see if a specific xml node exists (matches attribute class=”ReflectionPermission”). Eg 2. If it doesn't, create it. 3. If it does, check one of its attribute to see if it contains a specific string. Eg “RestrictedMemberAccess”. 4. If the attribute already contains the string, do nothing. 5. If it doesn't, append the string. Eg Flags="ReflectionEmit" becomes Flags="ReflectionEmit, RestrictedMemberAccess". Performing steps 1-2 using XmlConfig seems doable setting the appropriate xpath for VerifyPath. Is there any way to use the string value of an attribute and perform conditional actions, as in steps 3-5? Or, are there other suggestions on how to achieve the above? Thank you for your help. Regards, Hongping - 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] how to prevent XmlConfig from blocking upon failure
Hi, I am working on a installer uses XmlConfig to modify xml configuration files on the system. When the files are valid, all is fine and the installer works as expected. However, if a file is malformed, or if an expected ElementPath is not found, XmlConfig throws an error, and the whole install/uninstall fails. There is no way to proceed unless the user fixes the configuration files first. In my case, it is OK to proceed even if the configuration files are not modified successfully. Is there any way to configure the XmlConfig custom action to fail silently instead of blocking the whole install/uninstall? Thanks, Hongping - 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] setupbld/setupexe - using both UI and quiet modes
Hi, Does the default setup.exe that comes with setupbld.exe support both UI and quiet installation (/q) modes in the generated .exe? For example, currently, to show the UI embedded in the MSIs, I am using the following command: setupbld.exe -mcs MyPackage1.msi -mcs MyPackage2.msi -setup setup.exe -out chained.exe When the user runs "chained.exe", the UI for each MSI is shown as expected. However running "chained.exe /q" does not seem to do anything. If I use just "-mc" when running setupbld, then chained.exe does not show any UI, but it shows the progress bar. Is there a way to get both UI and silent mode installations? Thanks, Hongping - 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] How to check processor architecture
Hi, I have a couple of custom actions that the installer needs to run on the user's machine depending on the machine's processor architecture (x86 or x64). Is there some registry key or some property that I can check? I am looking for something to put within the condition of the Custom element, eg: PROCESSOR_ARCHITECTURE = x86 PROCESSOR_ARCHITECTURE = x64 Thanks, Hongping - 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