Re: [WiX-users] inifilesearch doesn't execute
Read about IniLocator table (http://msdn.microsoft.com/en-us/library/aa369283(VS.85).aspx): "... The .ini file must be present in the default Microsoft Windows directory." Also, it's the other way around. Parent element starts search and child element continues it with what parent found. So, IniFileSearch is supposed to find location of the file. In your case, .ini file must be in windows directory, otherwise you can't use IniFileSearch. That's the way it is in MSI. -Original Message- From: Eric Napier [mailto:napi...@gmail.com] Sent: Tuesday, July 21, 2009 7:42 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] inifilesearch doesn't execute No, it's not in the windows folder. It's in program files\my company\myapp Does it have to be in Windows for inifilesearch to work? I thought the directorysearch element told it where to look? -Original Message- From: "Alex Shevchuk" To: "'General discussion for Windows Installer XML toolset.'" < wix-users@lists.sourceforge.net> Date: Tue, 21 Jul 2009 16:45:36 -0700 Subject: Re: [WiX-users] inifilesearch doesn't execute Hi Eric, Are you sure that msi.ini file is in the default windows folder? Alex -Original Message- From: Eric Napier [mailto:napi...@gmail.com] Sent: Tuesday, July 21, 2009 3:34 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] inifilesearch doesn't execute I'm having a problem with an ini file search. I'm trying to disallow installation based on the presence of a value in an ini file. However, OLDVALUE (the item for which I'm searching) is never set. I've confirmed the presence of the item in the ini file. The path is correct. Examining the log, I can find no evidence of this search running. Can you tell what I'm doing wrong? My code below. Thanks (REMOVE ~= "ALL") OR (OLDVALUE="") -- ___ 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
Re: [WiX-users] inifilesearch doesn't execute
No, it's not in the windows folder. It's in program files\my company\myapp Does it have to be in Windows for inifilesearch to work? I thought the directorysearch element told it where to look? -Original Message- From: "Alex Shevchuk" To: "'General discussion for Windows Installer XML toolset.'" < wix-users@lists.sourceforge.net> Date: Tue, 21 Jul 2009 16:45:36 -0700 Subject: Re: [WiX-users] inifilesearch doesn't execute Hi Eric, Are you sure that msi.ini file is in the default windows folder? Alex -Original Message- From: Eric Napier [mailto:napi...@gmail.com] Sent: Tuesday, July 21, 2009 3:34 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] inifilesearch doesn't execute I'm having a problem with an ini file search. I'm trying to disallow installation based on the presence of a value in an ini file. However, OLDVALUE (the item for which I'm searching) is never set. I've confirmed the presence of the item in the ini file. The path is correct. Examining the log, I can find no evidence of this search running. Can you tell what I'm doing wrong? My code below. Thanks (REMOVE ~= "ALL") OR (OLDVALUE="") -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] inifilesearch doesn't execute
Hi Eric, Are you sure that msi.ini file is in the default windows folder? Alex -Original Message- From: Eric Napier [mailto:napi...@gmail.com] Sent: Tuesday, July 21, 2009 3:34 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] inifilesearch doesn't execute I'm having a problem with an ini file search. I'm trying to disallow installation based on the presence of a value in an ini file. However, OLDVALUE (the item for which I'm searching) is never set. I've confirmed the presence of the item in the ini file. The path is correct. Examining the log, I can find no evidence of this search running. Can you tell what I'm doing wrong? My code below. Thanks (REMOVE ~= "ALL") OR (OLDVALUE="") -- ___ 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] inifilesearch doesn't execute
I'm having a problem with an ini file search. I'm trying to disallow installation based on the presence of a value in an ini file. However, OLDVALUE (the item for which I'm searching) is never set. I've confirmed the presence of the item in the ini file. The path is correct. Examining the log, I can find no evidence of this search running. Can you tell what I'm doing wrong? My code below. Thanks (REMOVE ~= "ALL") OR (OLDVALUE="") -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] IniFileSearch
I had a look at the SDK but wasn't sure if it would have worked with a child DirectorySearch element or something. Never mind.. Don't think I'll be able to use the registry unless the installer creates the keys when it initializes. Thanks Dan From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: 12 December 2006 16:19 To: GIBBONS, Daniel; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] IniFileSearch MSI SDK says no. Most people use a registry key. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 07:39 To: wix-users@lists.sourceforge.net Subject: [WiX-users] IniFileSearch Hi, Does anyone know if there is a way I can get IniFileSeach to look in the current directory where the MSI is rather than the Windows directory? What I'm doing is storing server specific database details do that when I run the installer it picks up the correct environment details based on the computer name. I've got this working with ini file in the Windows directory but it's not ideal. And any thoughts on how upgrading or repairing would work afterwards as well? I.e. where would it try and look for the ini file again. Thanks Dan This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your co-operation. Please contact our IT Helpdesk on +44 (0) 20 7785 2000 or email [EMAIL PROTECTED] if you need assistance. Please refer to http://www.freshfields.com/legalnotice/uk.asp for regulatory information relating to the provision of insurance mediation services. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your co-operation. Please contact our IT Helpdesk on +44 (0) 20 7785 2000 or email [EMAIL PROTECTED] if you need assistance. Please refer to http://www.freshfields.com/legalnotice/uk.asp for regulatory information relating to the provision of insurance mediation services. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] IniFileSearch
[EMAIL PROTECTED] wrote: Does anyone know if there is a way I can get IniFileSeach to look in the current directory where the MSI is rather than the Windows directory? MSI doesn't support that, unfortunately. See the IniLocator doc on MSDN: The IniLocator table holds the information needed to search for a file or directory using an .ini file or to search for a particular .ini entry itself. The .ini file must be present in the default Microsoft Windows directory. -- sig://boB http://bobs.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] IniFileSearch
MSI SDK says no. Most people use a registry key. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 07:39 To: wix-users@lists.sourceforge.net Subject: [WiX-users] IniFileSearch Hi, Does anyone know if there is a way I can get IniFileSeach to look in the current directory where the MSI is rather than the Windows directory? What I'm doing is storing server specific database details do that when I run the installer it picks up the correct environment details based on the computer name. I've got this working with ini file in the Windows directory but it's not ideal. And any thoughts on how upgrading or repairing would work afterwards as well? I.e. where would it try and look for the ini file again. Thanks Dan This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your co-operation. Please contact our IT Helpdesk on +44 (0) 20 7785 2000 or email [EMAIL PROTECTED] if you need assistance. Please refer to http://www.freshfields.com/legalnotice/uk.asp for regulatory information relating to the provision of insurance mediation services. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] IniFileSearch
Hi, Does anyone know if there is a way I can get IniFileSeach to look in the current directory where the MSI is rather than the Windows directory? What I'm doing is storing server specific database details do that when I run the installer it picks up the correct environment details based on the computer name. I've got this working with ini file in the Windows directory but it's not ideal. And any thoughts on how upgrading or repairing would work afterwards as well? I.e. where would it try and look for the ini file again. Thanks Dan This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your co-operation. Please contact our IT Helpdesk on +44 (0) 20 7785 2000 or email [EMAIL PROTECTED] if you need assistance. Please refer to http://www.freshfields.com/legalnotice/uk.asp for regulatory information relating to the provision of insurance mediation services. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users