cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
james_decosta
Level 9

hi is it possible for me to read from the resources.zip or somewhere in the temp

hi,
i have a requirement wherein i want to read from a properties file which i am installing .
That is i want to read from the properties file in the preinstall panels from the properties file which i will be installing afterwards so i want to know if i can read from any temp(WINDOWS\Temp) or somewhere .
Any suggestions are awaited.
james
Labels (1)
0 Kudos
(6) Replies
james_decosta
Level 9

hi,
my aim is to read a properties file which i will be installing in the install task and i want to read the contents of the file in the preinstall task.
Hence i want to read from the properties file in the resources i have bundled .
I want to know from where i should read them or am i absurd in trying such a thing.
I know that we have a resources.zip file and whenever we run the installer it self extracts in the windows/TEMP directory.
james.
0 Kudos
RobertDickau
Flexera Alumni

Perhaps see if the getResource method of the InstallerProxy class will help?
0 Kudos
james_decosta
Level 9

----------------------------------------
public boolean evaluate rule(){
installerProxy.substitute("$INSTALLANYWHERE$","JAMES");

}
Can i use in this manner??????????????????????????????????????????????????/

james.
0 Kudos
RobertDickau
Flexera Alumni

CustomCodeRuleProxy does indeed support the substitute method. Please see the javadoc help for details.
0 Kudos
james_decosta
Level 9

hi,
it is not possible to access the installer resources in the evaluateRule() method.
james.
0 Kudos
RobertDickau
Flexera Alumni

(Duplicate question; follow-up [post=413148]here[/post]...)
0 Kudos