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!