Conditions issue

3 messages Options
Embed this post
Permalink
Patrick Sullivan

Conditions issue

Reply Threaded More More options
Print post
Permalink
Moderate time user, first time question asker.

 

I'm having issues where my protection condition around a component that
includes an inifile is not working correctly, yet when I include the value
of the tested variable it appears like it should be

 

Sample

 

<Property Id='OSINSTALLDIR' Secure='yes' Value='C:\Program Files\'/>

 

            <Property Id='CONFIGINIEXISTS'>

                  <DirectorySearch Id='ConfigDirectorySearch'
Path='[OSINSTALLDIR]Static\Path\' Depth='0'>

                        <FileSearch Id='CheckIniFile' Name='config.ini'/>

                  </DirectorySearch>

            </Property>

 

And later

 

                  <Component Id='ConfigIniComponent'
Guid='1fdcfd16-db4c-4de3-b06e-12f6d2f4c270' SharedDllRefCount='yes'>

                        <IniFile Id='WriteConnectionStringRobotics'
Action='addLine' Key='Connect0' Directory='ConfigLocation' Name='Config.ini'
Section='Robotic Connections' Value='Provider=SQLOLEDB.1;Integrated Security
= SSPI;Initial Catalog=[DATABASENAME];Data Source=[DATABASESERVER];'/>

                        <IniFile Id='WriteEnvironmentMain' Action='addLine'
Key='Environment' Directory=' ConfigLocation' Name='Config.ini'
Section='Main' Value='0'/>

                        <IniFile Id='WriteConnectionStringMain'
Action='addLine' Key='Connect0' Directory=' ConfigLocation'
Name='Config.ini' Section='Main' Value='Provider=SQLOLEDB.1;Integrated
Security = SSPI;Initial Catalog=[DATABASENAME];Data
Source=[DATABASESERVER];'/>

                        <IniFile Id='CaereLicenseIni' Action='addLine'
Key='License File'  Directory=' ConfigLocation'
Value='[RedCap05]oscaere.lic' Name='Config.ini' Section='Caere License' />

                        <IniFile Id='tempwrite' Action='addLine'
Key='templine' Directory=' ConfigLocation' Value='[OSINSTALLDIR]Static\Path'
Name='Config.ini' Section='temp'/>

                        <IniFile Id='output' Action='addLine' Key='newline'
Directory=' ConfigLocation' Value='[CONFIGINIEXISTS]' Name='Config.ini'
Section='temp'/>

                        <Condition>

                              <![CDATA[NOT CONFIGINIEXISTS]]></Condition>

                  </Component>

 

I've tried with and without the CDATA wrapping CONFIGINIEXISTS and it isn't
wanting to work either way.  And the output line I'm writing to configini
(when I've already got the file there) is filled in with the path and file
name.  I've researched but this looks like it should work.  I figure I'm
doing something simple and dumb.

 

I've tried pre-setting OSINSTALLDIR inside the installer AND in my batch
file I'm calling the MSI from via the command line.

 

Any info I'm missing that will help just point out and I'll supply it.

 

Thanks

 

~Patrick Sullivan

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Leo ...

timeout value for sql connection.

Reply Threaded More More options
Print post
Permalink

 

Can the connection timeout to the database be controlled when using the SqlExtension WIX library for running SQL scripts such using "sql:SqlString"?  Thx!

 


 
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Rob Mensching-6

Re: Conditions issue

Reply Threaded More More options
Print post
Permalink
In reply to this post by Patrick Sullivan
Does a verbose log file show the Property getting set?

Patrick Sullivan wrote:

> Moderate time user, first time question asker.
>
>
>
> I'm having issues where my protection condition around a component that
> includes an inifile is not working correctly, yet when I include the value
> of the tested variable it appears like it should be
>
>
>
> Sample
>
>
>
> <Property Id='OSINSTALLDIR' Secure='yes' Value='C:\Program Files\'/>
>
>
>
>             <Property Id='CONFIGINIEXISTS'>
>
>                   <DirectorySearch Id='ConfigDirectorySearch'
> Path='[OSINSTALLDIR]Static\Path\' Depth='0'>
>
>                         <FileSearch Id='CheckIniFile' Name='config.ini'/>
>
>                   </DirectorySearch>
>
>             </Property>
>
>
>
> And later
>
>
>
>                   <Component Id='ConfigIniComponent'
> Guid='1fdcfd16-db4c-4de3-b06e-12f6d2f4c270' SharedDllRefCount='yes'>
>
>                         <IniFile Id='WriteConnectionStringRobotics'
> Action='addLine' Key='Connect0' Directory='ConfigLocation' Name='Config.ini'
> Section='Robotic Connections' Value='Provider=SQLOLEDB.1;Integrated Security
> = SSPI;Initial Catalog=[DATABASENAME];Data Source=[DATABASESERVER];'/>
>
>                         <IniFile Id='WriteEnvironmentMain' Action='addLine'
> Key='Environment' Directory=' ConfigLocation' Name='Config.ini'
> Section='Main' Value='0'/>
>
>                         <IniFile Id='WriteConnectionStringMain'
> Action='addLine' Key='Connect0' Directory=' ConfigLocation'
> Name='Config.ini' Section='Main' Value='Provider=SQLOLEDB.1;Integrated
> Security = SSPI;Initial Catalog=[DATABASENAME];Data
> Source=[DATABASESERVER];'/>
>
>                         <IniFile Id='CaereLicenseIni' Action='addLine'
> Key='License File'  Directory=' ConfigLocation'
> Value='[RedCap05]oscaere.lic' Name='Config.ini' Section='Caere License' />
>
>                         <IniFile Id='tempwrite' Action='addLine'
> Key='templine' Directory=' ConfigLocation' Value='[OSINSTALLDIR]Static\Path'
> Name='Config.ini' Section='temp'/>
>
>                         <IniFile Id='output' Action='addLine' Key='newline'
> Directory=' ConfigLocation' Value='[CONFIGINIEXISTS]' Name='Config.ini'
> Section='temp'/>
>
>                         <Condition>
>
>                               <![CDATA[NOT CONFIGINIEXISTS]]></Condition>
>
>                   </Component>
>
>
>
> I've tried with and without the CDATA wrapping CONFIGINIEXISTS and it isn't
> wanting to work either way.  And the output line I'm writing to configini
> (when I've already got the file there) is filled in with the path and file
> name.  I've researched but this looks like it should work.  I figure I'm
> doing something simple and dumb.
>
>
>
> I've tried pre-setting OSINSTALLDIR inside the installer AND in my batch
> file I'm calling the MSI from via the command line.
>
>
>
> Any info I'm missing that will help just point out and I'll supply it.
>
>
>
> Thanks
>
>
>
> ~Patrick Sullivan
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>  

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users