/build/static/layout/Breadcrumb_cap_w.png

How to edit a .ser file

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

Answers (2)

Posted by: WiseUser 19 years ago
Fourth Degree Brown Belt
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)?
Posted by: MSIPackager 19 years ago
3rd Degree Black Belt
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ