PDA

View Full Version : Instaldir in a ini file



NewsArchive
08-15-2008, 02:04 AM
I need an INI file to have a content as:
[CPR]
GLO:Tabulex = C.\programfiles\bbsoft\stamint\bbsoft.txt

But, as I do not know about the correct name is 'programfiles' or
'Programmer', I have a problem.
The easy way was to use [INSTALDIR], but it does not seem to work.
How to?

Edvard Korsbęk

NewsArchive
08-15-2008, 02:04 AM
Edvard,

> I need an INI file to have a content as:
> [CPR]
> GLO:Tabulex = C.\programfiles\bbsoft\stamint\bbsoft.txt
>
> But, as I do not know about the correct name is 'programfiles' or
> 'Programmer', I have a problem.
> The easy way was to use [INSTALDIR], but it does not seem to work.
> How to?

Do you need this at compile time (when you compile setup.exe) or installer
runtime (when you run setup.exe)?

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
08-15-2008, 02:04 AM
At installer time
For now, I have decidet to make my own custom folder just for the ini file.
Thats too a bit more Virus (Sorry Vista!) friendly

Edvard

NewsArchive
08-15-2008, 02:05 AM
Hi Edvard,

> At installer time
> For now, I have decidet to make my own custom folder just for the ini
> file.
> Thats too a bit more Virus (Sorry Vista!) friendly

What about the following (I assume you are using the "Write INI" function in
the installer):

[CPR]
GLO:Tabulex = %PROGRAMFILESDIR%\bbsoft\stamint\bbsoft.txt

Friedrich