Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Wise 8 interpreting variable as Wise variable

Created: 27 Jul 2010 | 2 comments
DingPression's picture
0 0 Votes
Login to vote

Just recently upgraded from Wise Package Studio 5.52 to Wise 8.0. I'm updating some code that's been around for a few years, and one line is a registry edit that includes the string:
"C:\Program Files\Adobe\Acrobat\Acrobat.exe" "%1"
 

I haven't made any changes to that piece of code, and I've compiled this successfully in 5.52, but when I try to compile it in 8.0, I get an error message "No matching % for a variable name."

Just wondering how I can change my registry string so Wise doesn't think the %1 is a Wise variable.

Comments

VBScab's picture
27
Jul
2010
0 Votes 0
Login to vote

When you say "code"...

...I'm assuming you mean WiseScript? If so, as Mr Bannatyne says "Ahm oot."

Don't know why 'x' happened? Want to know why 'y' happened? Use ProcMon and it will tell you.
Think about using http://www.google.com before posting.

EdT's picture
27
Jul
2010
0 Votes 0
Login to vote

MSI or Wisescript?

Without knowing whether you are working with the Windows Installer Editor or the Wisescript Editor, I cannot give you a precise answer. However, assuming you are working with Wisescript, the normal way to handle a single % in a string is to put a second % in front of it.
So in your case, try "%%1" instead of "%1"

Since you have the Studio product, if the above does not solve your problem, I would recommend that you set up a snapshot capture, then add the registry key manually and complete the capture. Then open the editor you are using, and check how the registry key you have added is coded in the installation project.
Then you will know how to fix any further errors of this type.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.