 | | From: | flocken | | Subject: | I need to use user-defined-constant without coding. Is it possible? | | Date: | Wed, 15 Dec 2004 15:24:51 +0000 (UTC) |
|
|
 | Hi,
I have to create/change some registry entries with the same Subkey part, i.e.:
Root: HKLM; Subkey: "Software\ODBC\ODBC.INI\MyODBC"; Root: HKLM; Subkey: "Software\ODBC\ODBC.INI\ODBC Data Sources"; ValueType: string; ValueName: "MyODBC"; ValueData: "SQL Server" Root: HKLM; Subkey: "Software\ODBC\ODBC.INI\MyODBC"; ValueType: string; ValueName: "Driver"; ValueData: "C:\WINNT\System32\SQLSRV32.dll" ....
Sometimes later I'll have to redefine the Subkey. Is it possible somehow to declare (not in code) the User-Defined Constant and to use then in other sections (not in Code) ?
Smth. like: {a:MyODBC}
and then use it liike: [Registry] Root: HKLM; Subkey: "Software\ODBC\ODBC.INI\{a}"; Root: HKLM; Subkey: "Software\ODBC\ODBC.INI\ODBC Data Sources"; ValueType: string; ValueName: "{a}"; ValueData: "SQL Server" Root: HKLM; Subkey: "Software\ODBC\ODBC.INI\{a}"; ValueType: string; ValueName: "Driver"; ValueData: "C:\WINNT\System32\SQLSRV32.dll"
It would be really helpful also in big .iss files, if one value is to see in many places and the .iss file has often to be tuned or adjusted.
Thanks in advance,
flocken
|
|
 | | From: | Jonny Kwekkeboom | | Subject: | Re: I need to use user-defined-constant without coding. Is it possible? | | Date: | Thu, 16 Dec 2004 06:57:48 +0100 |
|
|
 | Hi, > ValueName: "Driver"; ValueData: "C:\WINNT\System32\SQLSRV32.dll" --- And do not this ! So if user have his windows on X Drive.....
"{sys}\SQLSRV32.dll"
cu Jonny
|
|
 | | From: | Dean Earley | | Subject: | Re: I need to use user-defined-constant without coding. Is it possible? | | Date: | Thu, 16 Dec 2004 09:00:36 -0000 |
|
|
 | > > ValueName: "Driver"; ValueData: "C:\WINNT\System32\SQLSRV32.dll" > --- > And do not this ! So if user have his windows on X Drive..... > > "{sys}\SQLSRV32.dll"
Or has windows XP or 9x
-- Dean Earley (dean.earley@icode.co.uk) i-Catcher Development Team
iCode Systems
|
|
 | | From: | Tim Rude | | Subject: | Re: I need to use user-defined-constant without coding. Is it possible? | | Date: | Wed, 15 Dec 2004 10:21:27 -0600 |
|
|
 | Use ISPP (Inno Setup Pre-Processor) for this. It comes bundled with the QuickStart Pack downloads.
http://files.jrsoftware.org/ispack/
#define a "MyOBCD"
[Registry] Root: HKLM; Subkey: "Software\ODBC\ODBC.INI\{#a}
-- Tim Rude
timrude@NOSPAM.hotmail.com (remove NOSPAM. for correct email address)
"flocken" wrote in message news:916bcd947a558e6e2ff295fe42d9958b$1@news.jrsoftware.org... > Hi, > > I have to create/change some registry entries with the same Subkey part, > i.e.: > > Root: HKLM; Subkey: "Software\ODBC\ODBC.INI\MyODBC"; > Root: HKLM; Subkey: "Software\ODBC\ODBC.INI\ODBC Data Sources"; ValueType: > string; ValueName: "MyODBC"; ValueData: "SQL Server" > Root: HKLM; Subkey: "Software\ODBC\ODBC.INI\MyODBC"; ValueType: string; > ValueName: "Driver"; ValueData: "C:\WINNT\System32\SQLSRV32.dll" > ... > > Sometimes later I'll have to redefine the Subkey. Is it possible somehow > to declare (not in code) the User-Defined Constant and to use then in > other sections (not in Code) ? > > Smth. like: > {a:MyODBC} > > and then use it liike: > [Registry] > Root: HKLM; Subkey: "Software\ODBC\ODBC.INI\{a}"; > Root: HKLM; Subkey: "Software\ODBC\ODBC.INI\ODBC Data Sources"; ValueType: > string; ValueName: "{a}"; ValueData: "SQL Server" > Root: HKLM; Subkey: "Software\ODBC\ODBC.INI\{a}"; ValueType: string; > ValueName: "Driver"; ValueData: "C:\WINNT\System32\SQLSRV32.dll" > > It would be really helpful also in big .iss files, if one value is to see > in many places and the .iss file has often to be tuned or adjusted. > > Thanks in advance, > > flocken >
|
|