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


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)



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   [ - ] Hide 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.
Answer this question or Comment on this question for clarity


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
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.

Answered 08/30/2005 by: MSIPackager
Third Degree Black Belt

Please log in to comment