/build/static/layout/Breadcrumb_cap_w.png

How to Remove Hardcoding from the registry table ?

Hi All, [:)]

I have one package, in which
Install Dirctory is : C:\program files\Hp\BPM\bin
in which so many files are copied.one dll is LrWsNetClient.dll
Problems are, in registry table is showing the incorrect value

in registry table ,value coloumn is showing file:///[ProgramFilesFolder]HP\BPM/bin/LrWsNetClient.dll .

Can somebody, tell me how to i can remove this hardcoding or what is meaning of this value ???

Thnaks
[:)] [:)] [:)]

0 Comments   [ + ] Show comments

Answers (9)

Posted by: AngelD 16 years ago
Red Belt
0
Usually "file:///" means that the file was installed through (local) UNC which sounds weird.
The directory path also looks "invalid".
You need to use formatting to point to the File table entry.
Make sure the component holding the file has it as a keypath then use [primary key of the file in the File table].
For long file name use [#LrWsNetClient.dll] and for short use [!LrWsNetClient].
This will be resolved to the folder path the component will be installed to + the filename.
Posted by: timmsie 16 years ago
Fourth Degree Brown Belt
0
For a useful list of formatted data strings, search for "Formatted" in the SDK
Posted by: dannyarya 16 years ago
Senior Purple Belt
0
Thanks Dear,
I'll try for this

I hav one more problem ,in registry table its showing value [ProgramFileFolder]HP\BPM

Can we solve this Hardcoding?
Posted by: timmsie 16 years ago
Fourth Degree Brown Belt
0
That directory must be listed in the directory table

so you would use [BPM] (possibly) you'd need to look in the directory table to determine the actual name
Posted by: anonymous_9363 16 years ago
Red Belt
0
ORIGINAL: timmsie

That directory must be listed in the directory table

so you would use [BPM] (possibly) you'd need to look in the directory table to determine the actual name
For file entries, always use the formatted filename, as Kim shows in his post. You're then guaranteed to always get the right path entered.
Posted by: AngelD 16 years ago
Red Belt
0
timmsie,

Thats true; however it's not always that the entry exists in the Directory table for any reasons which in that case removes the possibility to refer to the directory (property). Also if the registry value must not end with a trailing backslash then one would need to ex. author a custom action to remove the character or either use "[ProgramFileFolder]HP\BPM" or "[HP]BPM" if HP is an entry in the Directory table.
Posted by: jmcfadyen 16 years ago
5th Degree Black Belt
0
let me guess your using installshield right ? *grin*
Posted by: dannyarya 16 years ago
Senior Purple Belt
0
hey thanks dear,
i solved that hardcoding. first i was used [BPM], but becauce there are no backslash present so i used [InstallDir]BPM.

Once again thanks [:)]
Posted by: dannyarya 16 years ago
Senior Purple Belt
0
@ jmcfadyen

No dear, i'm using Wise Studio Package.

But, why you asked this question ?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ