PDA

View Full Version : Searching for unused properties



jgkenned
10-05-2012, 09:46 AM
I am working with an Installshield project that was created on version 12 by another developer. I converted the project to the 2012 Spring version. In the property manager view I have a bunch of properties that look like the following:
NewProperty1
NewProperty10
NewProperty11
NewProperty12
NewProperty13
....
How can I confirm that these properties are unused? I want to cleanup the project.
thanks

Roman1
10-05-2012, 10:00 AM
Hi,

just start your setup with logging.
In logfile after setup ends, you can see all properties with values.

jgkenned
10-05-2012, 10:39 AM
I did this and you are correct. Here's a snippet:

Property(C): NewProperty4 = 0
Property(C): NewProperty1 = 0
Property(C): NewProperty2 = 0
Property(C): NewProperty3 = 0
Property(C): NewProperty5 = 0
Property(C): NewProperty51 = 0
Property(C): NewProperty11 = 0
Property(C): NewProperty21 = 0
Property(C): NewProperty31 = 0
Property(C): NewProperty7 = 0
Property(C): NewProperty8 = 0
Property(C): NewProperty9 = 0
Property(C): NewProperty52 = 0
Property(C): NewProperty10 = 0
Property(C): NewProperty511 = 0
Property(C): NewProperty12 = 0
Property(C): ALLUSERS = 1
Property(C): AF_USERSETTINGSALERTNOCASE = true
Property(C): AF_USERSETTINGSALERTONECASE = false
Property(C): ARPNOMODIFY = 1
Property(C): AF_PROXYSERVERAUTOCONFIG = true
Property(C): AF_PROXYSERVERAUTH = NONE
Property(C): AF_PROXYSERVERAUTHMETHOD = NTLM
Property(C): NewProperty14 = 0
Property(C): NewProperty13 = 0
Property(C): AF_Dummy1 = 0
Property(C): NewProperty16 = 0
Property(C): NewProperty22 = 0
Property(C): NewProperty19 = 0
Property(C): NewProperty17 = 0
Property(C): NewProperty18 = 0
Property(C): NewProperty20 = 0
Property(C): NewProperty23 = 0
Property(C): AF_ProxyServerAutoConfig_UI = 1
Property(C): NewProperty24 = 0
Property(C): NewProperty25 = 0
Property(C): NewProperty26 = 0
Property(C): NewProperty27 = 0
Property(C): NewProperty28 = 0
Property(C): NewProperty29 = 0

The same properties I see in the project show up in the log too, but I'm not sure this tells me if they are used within the project somehow. This almost look like someone clicked the 'new' button a bunch of times.

Is there another way to do a usage search for a property? Would saving the project as XML enable me to search the text in a meaningful way?

thanks for any help

Roman1
10-08-2012, 03:28 AM
If you go to "Behavior and Logic"\"Property Manager"

you see right all of properties listed. These are all of them, which were created/set by you at creation time.
Be carefull not to delete anyone!
Some of them could be UI - Properties (NewPropertyXY) .

Magnus
10-08-2012, 06:12 AM
Can't you just search in the "Additional Tools"/Direct Editor?

Roman1
10-08-2012, 06:20 AM
I am asking a question, whatfor are you searching for unusing properties?