Wise Script conversion evaluation

For all your non-technical questions.
kjullion
Posts: 7
Joined: Tue Aug 06, 2013 6:16 pm

Wise Script conversion evaluation

Postby kjullion » Thu Aug 08, 2013 9:39 am

Hi,
I'm trialing the conversion of some of my Wise scripts and I'm confused as two why the following Wise command

Code: Select all

item: Compiler Variable If
  Variable=_COMPANY_
  Value=XYZCo
end

when converted by InstallAware comes over exactly the opposite of what the Wise command does.

Code: Select all

[compiler if Variable _COMPANY_ not Equals XYZCo]


Why is InstallAware putting in the "not"?
Does it have a problem with the way in which my compiler variable (in this case it's "_COMPANY_") is named?

Thanks.

FrancescoT
Site Admin
Posts: 4851
Joined: Sun Aug 22, 2010 4:28 am

Re: Wise Script conversion evaluation

Postby FrancescoT » Fri Aug 09, 2013 4:16 am

Dear User,

Unfortunately, I have do admit that what you found it is an error with converting the conditional Compiler variable statement from Wise.

I'll drop a note about it to our dev team.

At the moment I can only suggest that you to manually correct the conditional evaluation.

Regards
Francesco Toscano
InstallAware Software Support

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

kjullion
Posts: 7
Joined: Tue Aug 06, 2013 6:16 pm

Re: Wise Script conversion evaluation

Postby kjullion » Fri Aug 09, 2013 11:32 am

Ok, thanks. I may have found a different problem too; or maybe I did something wrong...I'm not sure.

In the WISE script below we are checking two Configuration settings (first) that the user's OS has the Win 95 Shell interface and (second) that they have Admin rights. I realize the Win 95 Shell Interface is an old and proabably out-dated test, and this is probably why the converter decides it's OK to comment out that test, but it only seems to comment out the "If" part of the test and not the "End If" part of the test, which means that after conversion I am left with a mis-matched pair (no "If", but a leftover "end if").

Code: Select all

item: Remark
  Text=Set to Long filename
end
item: Set Variable
  Variable=MAINDIR
  Value=%MAINDIR%
  Flags=00010000
end
item: Check Configuration
  Flags=10111011
end
item: Check Configuration
  Flags=10111111
end
item: Remark
  Text=This will update the Registry with the App Path entered by user
end
item: Edit Registry
  Total Keys=1
  Key=SOFTWARE\%DEFAULTDIR%\CurrentVersion
  New Value=%MAINDIR%
  Value Name=AppFolder
  Root=2
end
item: Compiler Variable If
  Variable=_INSTALLTYPE_
  Value=Setup
end
item: Edit Registry
  Total Keys=1
  Key=SOFTWARE\%DEFAULTDIR%\CurrentVersion
  New Value=%_APPVERSION_%
  New Value=
  Value Name=SetupVersion
  Root=2
end
item: Compiler Variable End
end
item: End Block
end
item: End Block
end


Here is the post-conversion IA script:

Code: Select all

 Comment: Set to Long filename
 Set Variable MAINDIR to $MAINDIR$
 Convert to Long Path: MAINDIR
 Comment: Check Configuration: <Windows 95 Shell Interface> not supported
 Get System Setting Administrator Rights into CHECKCONFIGURATIONVAR
 if Variable CHECKCONFIGURATIONVAR Equals TRUE
   Comment: This will update the Registry with the App Path entered by user
   Write Registry Key HKLM\SOFTWARE\$DEFAULTDIR$\CurrentVersion\AppFolder, $MAINDIR$
   [compiler if Variable _INSTALLTYPE_ not Equals Setup]
   Write Registry Key HKLM\SOFTWARE\$DEFAULTDIR$\CurrentVersion\SetupVersion, $_APPVERSION_$
   [compiler end]
 end
 end


Notice the two "end" statements and only one "If" statement.

Thanks!

FrancescoT
Site Admin
Posts: 4851
Joined: Sun Aug 22, 2010 4:28 am

Re: Wise Script conversion evaluation

Postby FrancescoT » Mon Aug 12, 2013 8:40 am

... let me check ... for sure it seems to be not correct.

Regards
Francesco Toscano
InstallAware Software Support

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Non-Technical”

Who is online

Users browsing this forum: No registered users and 1 guest