cooladn
24th April 2002 16:15 UTC
Start Program After Install
Hi!
After successfull installation,i need to refresh screen parameters or closing session to start my program.
As it's an Active Desktop file, i want to Notify the system of an event that an application has performed.
I know SHChangeNotify command (Shell command) but it doesn't work.
I don't know why.
this is my data to open Folder : it works.
set oShell = CreateObject("Shell.Application")
set oFolder = oShell.BrowseForFolder(0, "Choose a Folder", 0)
My data to refresh : don't work
set oShell = CreateObject("Shell.Application")
set oFolder = oShell.ChangeNotify("ALLEVENTS")
Do you have an idea to realize this ?
Thinks for your help and sorry for my help
Joost Verburg
24th April 2002 21:38 UTC
Applying changes to the Active Desktop is only possible with the IActiveDesktop COM Interface.
So you should write a small program that calls the update function. The are some C++ samples available on the MS site.
kichik
24th April 2002 21:41 UTC
Or a DLL for NSIS...
Smile2Me
25th April 2002 08:18 UTC
Here's a dll that refreshes the Active Desktop. I did not create it. Florian Heidenreich did it!!! But I use it in my program ToDoList successfully.
-Hendri.
cooladn
26th April 2002 10:03 UTC
Thinks a lot for your help
i've find another solution with a Visual Basic program that refresh Active Desktop. And i can active it if it is not.
So, thinks a lot for your help.
Joost Verburg
26th April 2002 13:43 UTC
If you want to use a Visual Basic program for it, you should include the VB runtime (about 1 MB).