SLX automatically updating

D

Debbie Giuliano

Hello,

I have a SLX file from Target Designer that I have checked to automatically
update. Is there a way I can change that without bringing up Target
Designer. As you know if you bring up Target Designer with that checked it
updates the components and to take off the check box to automatically update
I would have to save the SLX with the upgrade. Is there a way around this?

Thanks,

Debbie Giuliano
 
K

KM

Debbie,

Yes, you could do that with CMIExplorer or your own custom script. Although, CMI is undocumented so you would be on your own with
the script (with this NG helps, though).

However, I'd recommend you much easier thing if acceptable to you: open TD with no project, go to Tools-->Options-->Advanced page.
Find there "Configuration Upgrade" section and set the "Ask for confirmation before opening an upgradeable configuration" checkbox.
Only then open your SLX and reject to upgrade it.
 
D

Debbie Giuliano

KM thanks for the info but I already had that checked and it does not ask
for confirmation. I will try with CMIExplorer though and see what I get.
 
K

KM

Debbie,

You must have set the "Automatic component refresh" and "Automatic component upgrade" options on the Configuration settings page :-(
Well.. the only way to "disable" that I see in the CMI Explorer approach then. (unless you saved the Configuration in XML format -
then it would be easier to change the file itself manually).

Ok.. Here is the CMI Explorer script I wrote for you that you can use to "fix" your project with CMIExplorer.

; Setup is the default db
DBOPEN setup

; Load your SLX.
load slxtest AutoUpgradeTest.slx

; Dump the configuration content if you want to debug it
;dump slxtest

slxtest.Properties("cmiAutoUpgrade") = FALSE
slxtest.Properties("cmiAutoRefresh") = FALSE

; Save your SLX.
SAVE slxtest AutoUpgradeTest.slx

BYE

Just replace the AutoUpgradeTest.slx by your own project file name. Save the file in a DisableAutoUpgrade.rsp file or something like
that.
And launch the following command line:
cscript.exe CMIEXP.WSF //B //Nologo @DisableAutoUpgrade.rsp
Correct the paths to the CMIEXP.WSF (CMIExplorer script) and to the DisableAutoUpgrade.rsp script itself. Also, make sure the path
to the SLX is also proper within the RSP file.

Good luck and let us know if it helps you with the issue.
 
D

Debbie Giuliano

Thanks a bunch for the script file. I did save it in XML format and did it
that route.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top