Relevance substitution error - office 2010

(imported topic written by nberger91)

Im trying to use some basic ‘if’ statements in my action script to download the appropriate office install based on currently installed langauge pack.

the following action parses correctly using the action script debugger, but not when deploying through console.

the ‘dos cmd’ actions in the non english relevance expressions will be replaced by the appropriate downloads when they are ready.

The console reports relevance substituation failed.

My expected result for testing would be the setup.exe would run. Am i missing something ?

//English (Defaulting to US-EN)

//if {exists value “SKULanguage” whose (it = 1033) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources” of registry}

//dos cmd

//else

//French

if {exists value “SKULanguage” whose (it = 1036) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources” of registry}

dos cmd

else

//Spanish

if {exists value “SKULanguage” whose (it = 3082) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources” of registry}

dos cmd

else

//German

if {exists value “SKULanguage” whose (it = 1031) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources” of registry}

dos cmd

else

//Italian

if {exists value “SKULanguage” whose (it = 1040) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources” of registry}

dos cmd

else

//Hebrew

if {exists value “SKULanguage” whose (it = 1037) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources” of registry}

dos cmd

else

//Traditional Chinese

if {exists value “SKULanguage” whose (it = 1028) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources” of registry}

dos cmd

else

//Simplified Chinese

if {exists value “SKULanguage” whose (it = 2052) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources” of registry}

dos cmd

else

//Korean

if {exists value “SKULanguage” whose (it = 1042) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources” of registry}

dos cmd

else

//Japanese

if {exists value “SKULanguage” whose (it = 1041) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources” of registry}

dos cmd

endif

//No Supported Language Pack Detected (Defaulting to US-EN)

download http://myserver:myport/Uploads/922a775384869540b5504ee5f3f1a8f6f4a9314c/Office2010English.tmp

continue if {(size of it = 1062374694 AND sha1 of it = “922a775384869540b5504ee5f3f1a8f6f4a9314c”) of file “Office2010English.tmp” of folder “__Download”}

extract Office2010English.tmp

wait __Download\setup.exe

(imported comment written by SystemAdmin)

Try replacing “else if” with “elseif”