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
FOLLOW US
Get the latest news in Application Packaging