Wise 4.0
Tech Support Questions
Q.
Is there a way to add your application to Add/Remove Section of the
windows95 control panel?
- A.
Yes, the sample script C:\WISE\SAMPLE\SAMPLE.WSE includes two lines
that look like:
Registry Key
Software\Microsoft\Windows\CurrentVersion\Uninstall\Wise 4.0...
These two lines add the line Wise 4.0 to the Add/Remove list.
Q.
I need to be able to have the script execute a command normally
performed from the Windows 3.1 or Win 95 Run command during the
execution of the script. I get the error "Could not execute the
external program C:\temp\setup\setup.exe" It continues "Use file-run
from program manager to start Microsoft setup." How do I get around
this? For the moment I just have a message telling the user to do it
manually but that is not what I believe should be done.
- A.
You need to make sure the Execute Program script item EXE Path starts
with a variable and contains the pathname of the EXE on the
destination computer. You should also make sure to set the proper
default directory in the Execute Program dialog.
Q.
I like to use the Volume Id Number in a Password scheme. The Id
Number is the 8 digit hex string which displays when you run the Vol
Command from dos. The command would be
execute 'vol temp.txt'
I would then read the last nine bytes of the Temp.Txt file to
extract the string. I assume I can use the Execute program script
item and I hope that it will run in the background so the user is
unaware of what I am doing.
- A.
You may want to write a small DLL to do this. That DLL function could
then save the volume into a Wise variable. You can use the Execute
Program script item to execute "C:\COMMAND.COM /C VOL >>
%TEMP%\VOL.TXT" but that would require that the VOL.EXE program be in
the current path. In addition you would then have to parse the TXT
file that is created.
Q.
How can I stop users entering long filenames into the directory
dialogs using Wise 4.0? I think there used to be a way in the old
versions, but I can't find a way now.
- A.
There is not a way to stop from entering a long directory name under
Windows NT or 95 but you can convert it to a short filename right
after they enter it. Use the Set Variable script item with the Convert
to Short Filename selected as in: Set Variable MAINDIR to %MAINDIR%
[TECH SUPPORT TOC]
[HOME]
[TABLE OF CONTENTS]
[SEARCH]