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!

heatherpro
Posts: 1
Joined: Fri Mar 31, 2017 3:47 pm

Replace text feature is also deleting text with [ ] ????

We have a really old installer which does what i'm trying to accomplish, but we don't have the aip file. Just the exe.

I'm trying to replace 2 text strings in a file from user input from the install dialog. These are set to 2 properties. So during the install the file launches, and you can see the 2 text replacements just fine, the issue is the file now has data missing. There seems to be a pattern here... Any text enclosed in [] seems to be missing. you can see an example below, the first section is my original file.
The second section is where text is missing.

I know this has worked in the past, anyone know why [ ] seem to cause an issue and how to work around this? Thanks


Original file:
-- STEP 1: CREATE DATABASE
USE [MASTER]
CREATE DATABASE [New DB]

-- STEP 2: ADD USER (TEST)
-- A) Create User
CREATE LOGIN [New User]
WITH PASSWORD=N'shhh',
DEFAULT_DATABASE=[New DB],
DEFAULT_LANGUAGE=[us_english],
CHECK_EXPIRATION=OFF,
CHECK_POLICY=OFF
After the replace:

-- STEP 1: CREATE DATABASE
USE MISSING
CREATE DATABASE MISSING

-- STEP 2: ADD USER (TEST)
-- A) Create User
CREATE LOGIN MISSING
WITH PASSWORD=N'shhh',
DEFAULT_DATABASE= MISSING
DEFAULT_LANGUAGE= MISSING
CHECK_EXPIRATION=OFF,
CHECK_POLICY=OFF
GO
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Replace text feature is also deleting text with [ ] ????

Hi and welcome to Advanced Installer forums.

Please take a look on the "Editing TXT file: curly brackets missing" thread which debates a similar problem and also contains the solution.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”