- Introduction
- Registration
- Using Advanced Installer
- Features and Functionality
- Tutorials
- Samples
- How-tos
- Application/Package
- Files and Folders
- Launch file after installation
- Launch file after installation
- Replace a file using a transform
- Write text to a file
- Import and edit an XML file
- Install a user specific file
- Conditionally install a file or a registry
- Remove a file or a folder during installation
- Install in another application's folder
- Install files in a custom folder
- Deliver a file to all users profiles
- Install files with the same name
- Always install some resources in the "C:\Windows\System32"
- Always install some resources in the "C:\Program Files"
- Create shortcut only if a feature is installed
- Create an MSI with files outside
- Deploy files in the User Profile folder
- Installing a package on a USB drive
- Append data to existing REG_BINARY using Advanced Installer
- Deploy an Angular Application to IIS
- Preserve application settings using XML files
- Preserve application settings using registry values
- Preserve application settings using a custom action
- Services and Processes
- Custom Actions How Tos
- Secure Property
- Create a log
- Organization
- Load installer property from configuration file
- Pass configuration file for prerequisite
- Implement software identification
- Restart the machine after the installation
- Make the package install per-user or per-machine
- RegistrySearch
- Add HKCU registry entries or per-user files for all users
- Create MSI wrapper over EXE installers
- MSI Package Silent Install - How do I create one?
- Installing multiple instances from the command line
- Single-click run my application from its installation package
- Configure server-side serial number validation
- Validate serial number during Wizard Dialogs Stage only
- Collect installation data and send it to a web server
- Implement self-healing into the application
- Installing Driver
- Installing drivers in mixed packages
- Sideload APPX using an MSI
- Deploying a Python script
- Deploy certificates required by Office 2010
- Installing Screen Saver
- Windows Restart Manager
- Create a chained installation
- Create an Access Database installer
- Create a web-based installation package.
- Install Add-in Express based Office add-ins
- Launch application at logon/startup
- How 32-bit setup packages behave on 64-bit machines
- Conditionally install a prerequisite based on the user selection
- Create updates with a repackaged application
- Set the Publisher ID for a UWP AppX
- Distribute Windows Updates among the installer
- Configure help setup package among the installer
- Localize a project segment
- How to have a property with different default value for each build
- Launch a certain application from an APPX package after install.
- Create AppInstaller file for MSIX packages.
- Instal and configure COMs.
- Azure Active Directory - registering Advanced Installer for Device Guard Signing.
- EV Code Signing in Advanced Installer
- Detect applications that keep files in use at install time.
- Add merge modules to your project.
- Build Microsoft Store distribution and sideloading distribution MSIX packages with a single build operation
- Import an MSIX built with Visual Studio
- Configuring Azure Trusted Signing or Digicert Keylocker
- Run powershell script to populate a CheckList
- Convert COM registration from MSI to MSIX.
- Installer for Large Resources Overcoming MSI Size Limits.
- Using Azure Trusted Signing in your GitHub Actions
- How to Brand Installers for Partners and Customers
- Repackaging Large Applications from a Packager's Perspective
- How to Add Custom Prerequisite to Your Project Using WiX Toolset
- How to Add Prerequisites to a Visual Studio Setup Project
- Files and Folders
- 32/64-bit
- User Interface
- Upgrade
- Uninstall/Maintenance
- ODBC/SQL
- IIS
- Java
- Licensing
- Advanced Analytics SDK
- Application/Package
- FAQs
- Windows Installer
- Deployment Technologies
- IT Pro
- MSIX
- Video Tutorials
- Advanced Installer Blog
- Table of Contents
- Introduction
- Registration
- Using Advanced Installer
- Features and Functionality
- Tutorials
- Samples
- How-tos
- Application/Package
- Files and Folders
- Launch file after installation
- Launch file after installation
- Replace a file using a transform
- Write text to a file
- Import and edit an XML file
- Install a user specific file
- Conditionally install a file or a registry
- Remove a file or a folder during installation
- Install in another application's folder
- Install files in a custom folder
- Deliver a file to all users profiles
- Install files with the same name
- Always install some resources in the "C:\Windows\System32"
- Always install some resources in the "C:\Program Files"
- Create shortcut only if a feature is installed
- Create an MSI with files outside
- Deploy files in the User Profile folder
- Installing a package on a USB drive
- Append data to existing REG_BINARY using Advanced Installer
- Deploy an Angular Application to IIS
- Preserve application settings using XML files
- Preserve application settings using registry values
- Preserve application settings using a custom action
- Services and Processes
- Custom Actions How Tos
- Secure Property
- Create a log
- Organization
- Load installer property from configuration file
- Pass configuration file for prerequisite
- Implement software identification
- Restart the machine after the installation
- Make the package install per-user or per-machine
- RegistrySearch
- Add HKCU registry entries or per-user files for all users
- Create MSI wrapper over EXE installers
- MSI Package Silent Install - How do I create one?
- Installing multiple instances from the command line
- Single-click run my application from its installation package
- Configure server-side serial number validation
- Validate serial number during Wizard Dialogs Stage only
- Collect installation data and send it to a web server
- Implement self-healing into the application
- Installing Driver
- Installing drivers in mixed packages
- Sideload APPX using an MSI
- Deploying a Python script
- Deploy certificates required by Office 2010
- Installing Screen Saver
- Windows Restart Manager
- Create a chained installation
- Create an Access Database installer
- Create a web-based installation package.
- Install Add-in Express based Office add-ins
- Launch application at logon/startup
- How 32-bit setup packages behave on 64-bit machines
- Conditionally install a prerequisite based on the user selection
- Create updates with a repackaged application
- Set the Publisher ID for a UWP AppX
- Distribute Windows Updates among the installer
- Configure help setup package among the installer
- Localize a project segment
- How to have a property with different default value for each build
- Launch a certain application from an APPX package after install.
- Create AppInstaller file for MSIX packages.
- Instal and configure COMs.
- Azure Active Directory - registering Advanced Installer for Device Guard Signing.
- EV Code Signing in Advanced Installer
- Detect applications that keep files in use at install time.
- Add merge modules to your project.
- Build Microsoft Store distribution and sideloading distribution MSIX packages with a single build operation
- Import an MSIX built with Visual Studio
- Configuring Azure Trusted Signing or Digicert Keylocker
- Run powershell script to populate a CheckList
- Convert COM registration from MSI to MSIX.
- Installer for Large Resources Overcoming MSI Size Limits.
- Using Azure Trusted Signing in your GitHub Actions
- How to Brand Installers for Partners and Customers
- Repackaging Large Applications from a Packager's Perspective
- How to Add Custom Prerequisite to Your Project Using WiX Toolset
- How to Add Prerequisites to a Visual Studio Setup Project
- Files and Folders
- 32/64-bit
- User Interface
- Upgrade
- Uninstall/Maintenance
- ODBC/SQL
- IIS
- Java
- Licensing
- Advanced Analytics SDK
- Application/Package
- FAQs
- Windows Installer
- Deployment Technologies
- IT Pro
- MSIX
- Video Tutorials
- Advanced Installer Blog
- Table of Contents
How to write text to a file
The following article uses options that are available starting with the Enterprise edition and project type.
If you need to write information into an XML or INI file, you can use the XML Editor or the INI Editor
Sometimes the installation package must write some information into a file installed by your package. This can be done using the Text File Update feature available in Advanced Installer.
Lets suppose that after the installation is complete you want to have a file which contains the serial number entered by the user. This serial number is stored in the SERIAL_NUMBER property, which is assigned to an edit box control on a custom dialog.
Navigate to Files and Folders page in the folder you want to install it into. Once here, use the [ New Text File Update ] button from the toolbar or from the context menu select the “New Text File Update” item. The Edit Text File Update Set Dialog dialog will appear.
Since we are only appending/creating the file, remove the Replace operation from the left pane by selecting it and press Delete.
In the File Content field, write the above defined property into brackets: [SERIAL_NUMBER]