English 中文(简体)
Why isn t SQL Text Substitution working in InstallShield
原标题:

I m trying to run some dynamic SQL in an installscript project. In the UI portion of the script I have the following code:

TextSubSetValue("<INSERTSITES>", message, TRUE);
message = "";
MessageBox(message, INFORMATION);
TextSubGetValue("<INSERTSITES>", message, FALSE, TRUE);
MessageBox(message, INFORMATION);

The message boxes are just for debug and output the nothing and then the insert statement as you would expect. In my sql scripts section i have a script that is just:

$$ISITES$$

Then my Text Replacement tab looks like this: Text Replacement http://mykroft.net/tReplace.png

But for some reason the replacement just ends up with a blank string. Am I missing something? Where/When does the replacement even happen?

最佳回答

Replacements cannot be the only thing in the file or the file isn t run. I added a select statement at the end of the file like this:

$$ISITES$$
SELECT * FROM [Site]

Which makes the file run with the replacement.

问题回答

暂无回答




相关问题
Reusing InstallShield prerequisites

I m looking to have a release layout with multiple installers but with a single source for prerequisites, in the following structure: Product1setup.exe Product2setup.exe Product3setup.exe ...

DuplicateFile table with GAC

My installer has grown very large b/c of file duplication. Some of our DLL s are in two places (local and GAC or local and system32 folders). How can I use the DuplicateFile table or other ...

Error 1926 on setup created by InstallShield 2008

I m compiling the setup with InstallShield 2008 - Professional and I have a problem that occurred only in some Win 7 Ultimate systems. My setup is suppose (among others) to copy files to the "Program ...

A InstallShield INSTALLDIR and TARGETDIR issue

Now I have a problem about InstallShield INSTALLDIR and TARGETDIR. for example: 1- I make a project named "MyTestprogram" 2- I install this program into my computer which location is D:MyCompany...

Why isn t SQL Text Substitution working in InstallShield

I m trying to run some dynamic SQL in an installscript project. In the UI portion of the script I have the following code: TextSubSetValue("<INSERTSITES>", message, TRUE); message = ""; ...

how to open a web page on click of button in InstallShield?

HI, I want to open a web page on click of a button in any dialog that is created in InstallShield. I think it can be created by using custom actions but as I am new in this tool do not find the exact ...

Silent install installer with prerequisites [closed]

Is there a way to install silently (/s) an InstallShield (non-MSI) installer that requires its own prerequisites? In my case the prerequisite is Microsoft Visual C++ 2008 Redistributable. Its UI ...

Issue with InstalShield

I Use Installsheild 2009 To Deployment VS2005 Project with Sql express 2005 DB. I put my exe and DB files. And I typed /qn SQLAUTOSTART=1 ADDLOCAL=ALL DISABLENETWORKPROTOCOLS=1 in command line to ...

热门标签