I have Sql script that makes an update in a table
Hard code it is working fine .
But i want that in the dialog the values that the user enters
in the text boxes - will be the values to be updated in the table.
My SQL script is :
update [ServerName].[dbo].[TableParameters]
SET [Param_Value] = '[Port_Value]'
where [Param_Id] = 'xx'
IN THE TEXT REPLACEMENT TAB - i put in
FIND WHAT :Port_Value
REPLACE WITH: NAME_OF_PUBLIC_PROPERTY_OF_TEXT_BOX (all in upper case)
After the installation completes -The script update the table
with the [Port_Value]
AND DOES NOT REPLACE IT with the actual property value that the user entered. WHY ??? please help!
ALSO-HOW TO GET PROPERTIES VALUES??
I changed the ENABLE_USER_CONTROL VALUE TO 1 in the registry thinking it will help but not..
I am running as admin .
Thanks
MiCHAL
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
USING PROPERTY VALUE
Started by
michalInstall
, Mar 23 2011 18:17
4 replies to this topic
Posted 25 March 2011 - 15:00
Generate a log to see the actual property values.
If you want to replace [Port_Value] with a property, then specify [Port_Value] with the square brackets in the text replacement setting.
You may need to add NAME_OF_PUBLIC_PROPERTY_OF_TEXT_BOX to the SecureCustomPropertzies property.
If you want to replace [Port_Value] with a property, then specify [Port_Value] with the square brackets in the text replacement setting.
You may need to add NAME_OF_PUBLIC_PROPERTY_OF_TEXT_BOX to the SecureCustomPropertzies property.
Stefan Krüger
InstallSite.org twitter facebook
Posted 27 March 2011 - 07:38
QUOTE (Stefan Krueger @ 2011-03-25 15:00) |
Generate a log to see the actual property values. If you want to replace [Port_Value] with a property, then specify [Port_Value] with the square brackets in the text replacement setting. You may need to add NAME_OF_PUBLIC_PROPERTY_OF_TEXT_BOX to the SecureCustomPropertzies property. |
No
I already did those things , but it still doesnt take the property value,
what it does , it updates the table with the string name: [Port_Value]
but not the value(8080) it holds.
Do you have an idea why?
Posted 27 March 2011 - 07:39
QUOTE (michalInstall @ 2011-03-27 07:38) | ||
No I already did those things , but it still doesnt take the property value, what it does , it updates the table with the string name: [Port_Value] but not the value(8080) it holds. Do you have an idea why? |
By the way: How to create a Log?
Posted 28 March 2011 - 11:41
How to create a log:
http://www.msifaq.com/a/1022.htm
Check the actual values of the properties (search for all occurrences of the property name).
http://www.msifaq.com/a/1022.htm
Check the actual values of the properties (search for all occurrences of the property name).
Stefan Krüger
InstallSite.org twitter facebook