Hi



I want to edit the Aperture.ser through the custom action.



Observation:



I am trying to edit Aperture.ser in my msi using the custom action.

Code in script am using to edit is:



Set objtextfilewrite=fso.open(filepath,2)

Objtextfilewrite.writeline(“abceddd”)

Objtextfilewrite.close



If I do this am able to edit it but the application is not recognizing the file. So it will pop up the dialogue box eature and serial key. If edit it manually then its working fine.

And if we give the feature key and serial key in that dialogue box it will edit the file then its working fine.

(f I create a text file, edit it and then change extension as .ser it is not accepting. So how do I create a .ser file.)
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Have you tried "Set objtextfilewrite=fso.open(filepath,8)" (append) instead of "Set objtextfilewrite=fso.open(filepath,2)" (write)?

Which editor do you use when you do it manually (notepad)?
Answered 08/30/2005 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
0
If you are using Wise you could use a WiseScript to do it - that way you'll also be able to search for existing strings and insert your text accordingly.

Not saying you can't to this in VBScript but it will probably be a lot quicker using WiseScript.

Regards,
Rob.
Answered 08/30/2005 by: MSIPackager
Third Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity