I have attached a simple project where I want to modify a ini file, but it doesn't work.
Any idea what's wrong
Jørgen
How to create/modify a inifile
Her is my code
if Variable ADVERTISE Equals TRUE
Apply Advertised (get result into variable SUCCESS)
else
Apply Install (get result into variable SUCCESS)
if Variable SUCCESS not Equals ERROR
if Variable SUCCESS not Equals CANCEL
Call DLL Function $TARGETDIR$\\testdll.dll->CreateINI
Edit INI File $TARGETDIR$\\test.ini, [Section1] Value=$TARGETDIR$
Run Program $TARGETDIR$\\TestAppMan.exe "$TARGETDIR$" (WAIT)
Run Program $TARGETDIR$\\TestApp.exe "$TARGETDIR$" (WAIT)
end
end
end
The line
Edit INI File $TARGETDIR$\\test.ini, [Section1] Value=$TARGETDIR$
doesn't work.
Must test.ini exist in the setupfiles or can it be created by Edit INI File?
Apply Advertised (get result into variable SUCCESS)
else
Apply Install (get result into variable SUCCESS)
if Variable SUCCESS not Equals ERROR
if Variable SUCCESS not Equals CANCEL
Call DLL Function $TARGETDIR$\\testdll.dll->CreateINI
Edit INI File $TARGETDIR$\\test.ini, [Section1] Value=$TARGETDIR$
Run Program $TARGETDIR$\\TestAppMan.exe "$TARGETDIR$" (WAIT)
Run Program $TARGETDIR$\\TestApp.exe "$TARGETDIR$" (WAIT)
end
end
end
The line
Edit INI File $TARGETDIR$\\test.ini, [Section1] Value=$TARGETDIR$
doesn't work.
Must test.ini exist in the setupfiles or can it be created by Edit INI File?
Everyting works
Now it works
Call DLL Function $TARGETDIR$\\testdll.dll->CreateINI
I added this to test how to create a ini file in a dll (it also works)
Jørgen
Call DLL Function $TARGETDIR$\\testdll.dll->CreateINI
I added this to test how to create a ini file in a dll (it also works)
Jørgen
Who is online
Users browsing this forum: No registered users and 71 guests