Jump to content
Ketarin forum

Is it possible to use {preupdate-url} from a powershell script?


dtgm
 Share

Recommended Posts

I want the variables to update and be handed to an external downloader within a preupdate powershell command.

 

{preupdate-url} seems to accomplish this in a batch script, but I want to trigger the same behavior within a powershell script.

 

Anyone know how to do that?

 

 

Link to comment
Share on other sites

I think I may need to clarify:

 

1. Assume a new application with a set variable VAR that is scraping some string from a website with regex.

2. Until the application is updated $app.variables.item("VAR").cachedcontent is empty so I cannot use that in a "Before updating..." posh command. Obviously, this also fails between updates as it will return the previous version value and then update the DB after preupdate command has run so if I then force update then cachedcontent will be correct.

3. So how would I go about getting VAR evaluated for the current version in a "Before updating..." posh command?

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.