Page 1 of 1

Edit ini file fails

Posted: Thu Apr 27, 2017 4:25 am
by SITL
Dear Francesco,

Edit INI File command is NOT Working as expected.

Here are my commands
1. After Apply install, i have this command that uses Target directory,
~InstallAware Clipboard Data~
~Edit INI File~
~{7C5202F2-303C-4F3E-9D76-F9AA093F3800}~
~$TARGETDIR$~
~spw.ini~
~0~
~Application~
~Author~
~%WSE_USERNAME%~


2.For testing purpose, I have kept one .ini file on the desktop directory.
( .ini file will be there always )
~InstallAware Clipboard Data~
~Edit INI File~
~{7C5202F2-303C-4F3E-9D76-F9AA093F3800}~
~$DESKTOPDIR$~
~spw.ini~
~0~
~Application~
~Author~
~%WSE_USERNAME%~

3. I tried to use $SUPPORTDIR$, First Update the file in the Support directory &
then copy the file to Target directory. (Ofcourse, After successful Apply install )
still it does not work.

None of the above methods is working.
Any Idea ?
Regards
SITL

Re: Edit ini file fails

Posted: Thu Apr 27, 2017 5:56 am
by SITL
Francesco,

Thanks for all your help.
I was trying different methods, Finally managed to get it working :)

I used Edit ini file using SUPPORTDIR at the beginning of the script &
Copied the file after Apply install.

But while coping, it is asking the question Do you want to overwrite ?
So, How do i specify overwrite yes in my script. So that asking question is avoided.

Sorry for the language mistakes.
Regards
SITL

Re: Edit ini file fails

Posted: Thu Apr 27, 2017 11:55 am
by FrancescoT
Dear SITL,

you may set the "NATIVE_OVERWRITE" pre-defined variable.
https://www.installaware.com/forums/viewtopic.php?f=2&t=9712&p=36076

Please note that this is a NATIVE ENGINE pre-defined variable, due of this, it's supposed that the Native Engine has been switched ON after Apply Install and just before the "Copy/Move Local Files" statement.

For more details about this variable, please consult the IA documentation.

Hope this helps you.

Regards

Re: Edit ini file fails

Posted: Fri Apr 28, 2017 4:28 am
by SITL
Francesco, Thank you very much.