Find references of Path Variables used in ISM file

空扰寡人 提交于 2019-12-11 16:35:33

问题


I have one ISM file created using Installshield. In Path Variables Explorer, I can see some variables defined. How can find if they are used anywhere in the ISM ? I want to remove variables if they are unused.

I am using Installshield 11.5 Adminstudio.

Thanks in Advance.

---Sambhaji


回答1:


I wrote a program that did something similar only it was looking for unused string table entries. You can read about it at:

Use Linq to XML to Clean up ISString Tables

It would only take a few tweaks to change the query to look at the table that holds ISPathVariables.




回答2:


Sambhaji,

ISM files may be binaries or XML, make sure you are using the XML format.

I'm not sure if the option is the same in InstallShield 11.5, but in InstallShield 12, you have to go to General Information-->Project Properties-->Project File Format.

I understand that the Binary format is a bit faster than XML, but in order to keep my projects under version control I prefer the XML format.




回答3:


There is one simple way to find references of variable or properties.
Go to Additional Tools -> Direct Editor -> Tables
Just click on Tables and press Ctrl+F (Search option). And type the variable/property you want to search & hit enter.
It will show the reference of variables/properties. Press F3 to see next occurances.



来源:https://stackoverflow.com/questions/3606388/find-references-of-path-variables-used-in-ism-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!