Advanced Installer Community - Search

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Search found 5 matches

Go to advanced search

by ojii
Thu Mar 01, 2007 5:04 pm
Forum: Common Problems
Topic: replace text in file
Replies: 13
Views: 16896
 
Jump to post

okay now you'll probably not believe it but i managed to still get the error :(

the vbs file is now:

Function FindAndReplace(textToReplace, editProp)

Const ForReading = 1
Const ForWriting = 2

pathToFile = Session.Property("APPDIR") + "resource\UI\Teammenu.res"
replaceWith = Session.Property ...
by ojii
Wed Feb 28, 2007 7:42 pm
Forum: Common Problems
Topic: replace text in file
Replies: 13
Views: 16896
 
Jump to post

I've done both... changed the section, changed the scripts (adjusted filepath) and changed the scriptnames... still wont work...

I've uploaded the changed files... http://gk.tcleimbach.ch/teammenu.rar
by ojii
Wed Feb 28, 2007 4:26 pm
Forum: Common Problems
Topic: replace text in file
Replies: 13
Views: 16896
 
Jump to post

I usually run my scripts at "InstallFinalize", maybe you should try that. And there seems to be a mistake in your scripts. Your first script e.g., is RCON the property of the textbox in your installer?
You need to change following line

strNewText = Replace(strText, "__rconpw__", RCON)

to ...
by ojii
Wed Feb 28, 2007 2:50 pm
Forum: Common Problems
Topic: replace text in file
Replies: 13
Views: 16896
 
Jump to post

hi

thanks for that, but somehow it seems not to be working...

I've added five scripts to change some things in a file to the custom actions (commit and embed) and they look like this:

Function REPLACETEXT()

Const ForReading = 1
Const ForWriting = 2

APPDIR = Session.Property("APPDIR")
NEWTEXT ...
by ojii
Wed Feb 28, 2007 1:17 pm
Forum: Common Problems
Topic: replace text in file
Replies: 13
Views: 16896
 
Jump to post

replace text in file

hi

how can i make the installer replacing some expressions within a file (ascii text file, but not a .txt file) according to textboxes in the installer?

for instance I've got this file example.whatever and in this file is somewhere the text "this_should_be_replaced" and then in the insaller there ...

Go to advanced search