Tips and Tricks


General Tips and Tricks that can help you troubleshoot common issues

*************************************************************************************************
To disable the restart of the explorer.exe add the following properties to the MSI
MSIRMSHUTDOWN=0
MSIRESTARTMANAGERCONTROL=Disable
*************************************************************************************************
Whenever there is a setup.exe calling an MSI, and the installation cannot be called from the MSI , then add the following property
ISSETUPDRIVEN=1
This will allow you to install the MSI directly.
*************************************************************************************************
After sequencing the application when launched in Win 7 the below message pops up:
"Program Compatibility Assistant"
"This program has known Compatibility issues"
Issue is application generates a AppCompatFlag entry when installed physically in Win 7 in the following location: 
HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags
Add the following pre-launch and post shutdown scripts to resolve the issue:
<SCRIPT EVENT="LAUNCH" PROTECT="FALSE" TIMING="PRE" WAIT="TRUE" EXTERN="TRUE">
   <SCRIPTBODY LANGUAGE="Batch">@ECHO OFF\n
REG ADD "HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags" /v "{49956b5d-f1c5-42b0-8d35-780fff54f19a}" /t REG_DWORD /d 4 /f\n</SCRIPTBODY>
  </SCRIPT>
  <SCRIPT EVENT="SHUTDOWN" PROTECT="FALSE" TIMING="POST" WAIT="TRUE" EXTERN="TRUE">
   <SCRIPTBODY LANGUAGE="Batch">@ECHO OFF\n
REG DELETE "HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags" /v "{<guid>}" /f\n</SCRIPTBODY>
  </SCRIPT>
Which adds the registry during pre-launch of the shortcut and deletes the registries during closing of shortcut.
*************************************************************************************************
After Installing the application and try to UnInstall it throws the error "This action is valid for products that are currently Installed"
Go to InstallExecuteSequence Table, search for PublishProduct and delete the condition if any.
*************************************************************************************************

How to Reset the FileSystem Cache
Applies To: Application Virtualization.

Resetting the FileSystem cache is not something that should usually be necessary (only required sometimes for troubleshooting purpose).
To reset the FileSystem cache
1.       Set the following registry value to 0 (zero):
         HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SoftGrid\4.5\Client\AppFS\State
2.       Restart the computer.

*************************************************************************************************
Difference between Run RunOnce and RunOnceEX
Run runs the command every time a user logs in.
RunOnce clears the registry key as soon as the command is run.
RunOnceEx clears the registry key on completion of the command.


Popular posts from this blog

App v for Java Runtime Environment

app v for mindjet mindmanager

Structure of MSI package