rome Posted March 30, 2013 Report Share Posted March 30, 2013 I'm trying to configure my global variables using native vairables, or already defined globals. It doesn't seem to work. Or I'm doing something else wrong. For example, I have these global variables defined: {ue} - start /wait {startuppath}"..\UniExtract\UniExtract.exe" {install-path} - {startuppath}"..\"{appname:regexreplace: \(.*\):} {ue-extract} - {ue} "{file}" {install-path} In the after download command I placed {ue-extract} It doesn't do anything. Help? Link to comment Share on other sites More sharing options...
shawn Posted April 1, 2013 Report Share Posted April 1, 2013 In this context it wouldn't work. Global variables can't contain app-specific variables. To see exactly what it DID do, however, you can look at the log generated with View, Show Log. Link to comment Share on other sites More sharing options...
rome Posted April 1, 2013 Author Report Share Posted April 1, 2013 Ok, note taken, but that might be a shame. Say I have these variables: {portable-temp} = {startuppath}..\Temp\ {target-path} = {portable-temp}{appname}-{appVersion}.{dlUrl:ext} If I define target-path globally, it wouldn't accept app-specific variables. If I define it locally (in the template), I wouldn't be able to change it easily in case I want to define another naming convention -in another post I was told it wouldn't accept static changes. So in case I want to change the target path in all my related apps to (for example): {portable-temp}{appname}-{appVersion}-{filesize}.{dlUrl:ext} How should I accomplish that without exporting, find and replace and importing back...? Link to comment Share on other sites More sharing options...
rome Posted April 1, 2013 Author Report Share Posted April 1, 2013 Ok, never mind. Case closed. I understand now the variables:) Defining a variable called "dlTarget" (for example) and placing some syntax, E.g. {portable-temp}{appname}-{appVersion}.{dlUrl:ext}, will change whenever its modified. Link to comment Share on other sites More sharing options...
rome Posted April 1, 2013 Author Report Share Posted April 1, 2013 Is there a way to define a list of categories, for example, globally? Say {categories} = System|Graphics|Utility and then use it in the template? It throws an error whenever I try to do something like that... Link to comment Share on other sites More sharing options...
shawn Posted April 1, 2013 Report Share Posted April 1, 2013 No. But you can use the {categories} variable to have it list all your existing categories. This is probably what you're after anyway. This requires use of the current beta version (which you should really be using anyway). Link to comment Share on other sites More sharing options...
rome Posted April 1, 2013 Author Report Share Posted April 1, 2013 Superb. Thanks. I did see the option in one of the templates, but didn't figure I needed the beta to use it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now