Jump to content
Ketarin forum

Using variables inside variables?


rome
 Share

Recommended Posts

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.