Microsoft KB Archive/321320

= SMSINST: Installer 2.0.148.00 Repackage Changes Registry Entry from &quot;%1&quot; to  =

Article ID: 321320

Article Last Modified on 10/25/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2.0 Service Pack 5

-



This article was previously published under Q321320



SYMPTOMS
A Systems Management Server (SMS) Installer version 2.0.148.00 repackage changes registry entry from &quot;%1&quot; to . This may prevent software from running.



WORKAROUND
To work around this problem, put a &quot;dummy&quot; variable name in the second variable of the Parse String script item.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
When you repackage, compile, and run a program with SMS Installer 2.0148.00, a registry entry value (the registry path may vary from one program to another) under HKEY_CLASS_ROOT\APP.Document\shell\open\command (or DDEEXEC) changes from &quot;%1&quot; to &quot;\WINNT&quot;. After this registry entry is changed, running a program file from anywhere on the computer displays the following error message:

There was an error opening this document. The file does not exist.

This problem occurs in the Parse String script item, which is part of the default script that is created when you use Installation Expert. The string that is parsed is the WIN variable. This is typically similar to C:\WINNT. The line is split at the colon ; the first part of the string (such as C) is placed in the SYSDRIVE variable. Because there is no variable defined for the second part of the string, it should be discarded, but Installer creates a NULL variable that is equal to WINNT. Therefore, if %% is used later in the script to reference the percent (%) sign, the NULL variable is references instead. Because the NULL variable has been set to WINNT in the Parse String script item, %% is evaluated as WINNT.

Additional query words: prodsms smsinst systemroot

Keywords: kbbug kbprb KB321320

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.