Stein Inge
03-11-2007, 02:58 PM
Hi folks
Looks like I need some help to get this ini-file correct.
This is what I have entered into the "On Post Install" actions;
INIFile.SetValue("%AppFolder%\\Etterkommerbok.ini", "Report", "Cust_TitlePic","%AppFolder%\\backdrops\\Eika.jpg");
I install a file called "Etterkommerbok.ini" into the AppFolder. Then I need to set the full path to the picture file "Eika.jpg". The picture file path is in a section called [Report] and the start of the line is "Cust_TitlePic=".
The ini-file should look like this
[Report]
Cust_TitlePic=C:\Program files\My app\backdrops\Eika.jpg
The above code almost works, but the path to the jpg file is not working. The ini-file looks like this;
[Report]
Cust_TitlePic=%AppFolder%\backdrops\Eika.jpg
How can I get the actual path "C:\Program files\My app" into the ini-file and not the variable "%AppFolder%"?
best regards
Stein Inge Haaland
From little Norway
Looks like I need some help to get this ini-file correct.
This is what I have entered into the "On Post Install" actions;
INIFile.SetValue("%AppFolder%\\Etterkommerbok.ini", "Report", "Cust_TitlePic","%AppFolder%\\backdrops\\Eika.jpg");
I install a file called "Etterkommerbok.ini" into the AppFolder. Then I need to set the full path to the picture file "Eika.jpg". The picture file path is in a section called [Report] and the start of the line is "Cust_TitlePic=".
The ini-file should look like this
[Report]
Cust_TitlePic=C:\Program files\My app\backdrops\Eika.jpg
The above code almost works, but the path to the jpg file is not working. The ini-file looks like this;
[Report]
Cust_TitlePic=%AppFolder%\backdrops\Eika.jpg
How can I get the actual path "C:\Program files\My app" into the ini-file and not the variable "%AppFolder%"?
best regards
Stein Inge Haaland
From little Norway