Home > Back-end >  NSIS package installer after installation, a desktop shortcut icon or old icon
NSIS package installer after installation, a desktop shortcut icon or old icon

Time:10-04

In the project 1 x version used in the icon "Anderson co" as a desktop shortcut icon of application, application installation package use NSIS packaging tools, correctly installed to the system (7), the program shortcut icon also shows the "Anderson co", then in 2 x version of program icon in for "B.i co", also use NSIS tools packaged, installed to the system and found the desktop shortcut icon or "Anderson co" that one, but right click to open the properties dialog box shows the found to have a "B.i co" this icon,
Look from the phenomenon, should be a system no new ICONS will refresh in time, especially this kind of circumstance is added in the pack NSIS script code can be solved?

CodePudding user response:

The building Lord to ask, I was after the installation is complete to refresh or wait for a period of time before the normal!!! The building Lord solved yet

CodePudding user response:

reference 1st floor xyq241 response:
the original poster with q, I was after the installation is complete to refresh or wait for a period of time after the normal display! The building Lord solved not

No problem, still didn't get...

CodePudding user response:

 rem shut down Windows explorer 
Taskkill/f/im explorer. Exe
Rem cleaning system icon cache database
Attrib - h - s - r "\ % userprofile % AppData \ Local \ IconCache db"
Del/f "% userprofile % \ AppData \ Local \ IconCache db"
Attrib/s/d - h - s - r "\ % userprofile % AppData \ Local \ Microsoft \ \ Windows Explorer \ *", "
Del/f "% userprofile % \ AppData \ Local \ Microsoft \ \ Windows Explorer \ thumbcache_32 db"
Del/f "% userprofile % \ AppData \ Local \ Microsoft \ \ Windows Explorer \ thumbcache_96 db"
Del/f "% userprofile % \ AppData \ Local \ Microsoft \ \ Windows Explorer \ thumbcache_102 db"
Del/f "% userprofile % \ AppData \ Local \ Microsoft \ \ Windows Explorer \ thumbcache_256 db"
Del/f "% userprofile % \ AppData \ Local \ Microsoft \ \ Windows Explorer \ thumbcache_1024 db"
Del/f "% userprofile % \ AppData \ Local \ Microsoft \ \ Windows Explorer \ thumbcache_idx db"
Del/f "% userprofile % \ AppData \ Local \ Microsoft \ \ Windows Explorer \ thumbcache_sr db"
Rem cleaning system tray icon of memory
Echo y | reg delete "HKEY_CLASSES_ROOT \ Local Settings \ Software \ Microsoft \ Windows \ CurrentVersion \ TrayNotify"/v IconStreams
Echo y | reg delete "HKEY_CLASSES_ROOT \ Local Settings \ Software \ Microsoft \ Windows \ CurrentVersion \ TrayNotify"/v PastIconsStream
Rem restart Windows shell explorer
Start explorer


Keep this code into a bat script, after running in task manager task under the new explorer can manually

CodePudding user response:

Learn from the third floor! Salute to the third floor!!!!!

CodePudding user response:

My problem is a problem of ICONS don't show, reply here under the solution:
ICONS don't show the reason is to create a desktop shortcut before installation corresponding exe file with the time, so you just need to adjust the statement, that create the exe file time earlier than shortcut
To solve the problem, such as
The File ".. Exe \ ReleaseGreen \ test. "
# next these statements must be on File ".. \ ReleaseGreen \ test. Exe "behind, otherwise a desktop shortcut icon may need to manually refresh the desktop will be displayed only after
CreateDirectory "$SMPROGRAMS \ test system"
CreateShortCut "$DESKTOP \ test system. LNK" "$INSTDIR \ test exe"
CreateShortCut "$SMPROGRAMS, test system and test system. LNK" "$INSTDIR \ test exe"

CodePudding user response:

reference 5 floor a2886015 reply:
I encountered problem is a problem of ICONS don't show, reply the solution here:
ICONS don't show the reason is to create a desktop shortcut before installation corresponding exe file with the time, so you just need to adjust the statement, that create the exe file time earlier than shortcut
To solve the problem, such as
The File ".. Exe \ ReleaseGreen \ test. "
# next these statements must be on File ".. \ ReleaseGreen \ test. Exe "behind, otherwise a desktop shortcut icon may need to manually refresh the desktop will be displayed only after
CreateDirectory "$SMPROGRAMS \ test system"
CreateShortCut "$DESKTOP \ test system. LNK" "$INSTDIR \ test exe"
CreateShortCut "$SMPROGRAMS, test system and test system. LNK" "$INSTDIR \ test exe"


Admire your spirit of sharing, post a few years ago and people in reply!
  • Related