fosteky
Posts: 97
Score: 3 Joined: 4/26/2006 Status: offline
|
Hi All, I have re-packaged an application (SAP GUI 6.2) which requires an environmental variable (EnVar) be set, which I set within the MSI. This works fine once the user has launched the app (thereby installing it) and logged out and back in. But because the package is user assigned and comes as an advertised install - the EnVar doesn't set itself until the user logs off and logs on, which is when Windows reads its EnVars. The program install perfectly when the user launches the advertised shortcut, but the EnVar doesn't get set until the user logs off and back on. So I tried the following at the command line: SET SAPLOGON_INI_FILE=%APPDATA%\SAP\SAPLOGON.INI but even though it shows as being set (when I type SET at a command prompt), the application doesn't (resolve?) the EnVar. So I have two questions: Does anyone know how to instantly set a User Environmental Variable so that it will resolve for the user right away? If so, am I on the correct path in thinking that I can create a Custom Action that will set this right away, thereby doing away with the current need for the user to logoff and back on for the EnVar to set? Any help here would be very appreciated.
|