Edit ini file fails

Got a problem you cannot solve? Try here.
SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Edit ini file fails

Postby SITL » Thu Apr 27, 2017 4:25 am

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

SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Re: Edit ini file fails

Postby SITL » Thu Apr 27, 2017 5:56 am

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

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Edit ini file fails

Postby FrancescoT » Thu Apr 27, 2017 11:55 am

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Re: Edit ini file fails

Postby SITL » Fri Apr 28, 2017 4:28 am

Francesco, Thank you very much.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 38 guests