Help - Search - Members - Calendar
Full Version: CMenu
MSFN Forums > Unattended Windows Discussion & Support > Application Installs
Pages: 1, 2, 3, 4

   


Google Internet Forums Unattended CD/DVD Guide
totoymola
Hey MHz!! Wutsup man! You did not tell us that the version 1.9 is out! biggrin.gif And it has the "process block" too. smile.gif Very very cool! thumbup.gif
MHz
Your just too quick totoymola. I have only just uploaded that recently. Unfortunately due to a bug found sad.gif , I have done a service release in a v2.0 which I have just uploaded and should be currently fine to download. Yep, It has optional processblock function in AutoIt scripts created.

So officially, go for it. newwink.gif
ChTh
QUOTE (MHz @ Sep 3 2005, 09:31 PM) *
I will not alter the shell extension library. This would affect the editor, perhaps a rewrite of CMenu to acommodate the changes...
The current extension works fine. This is my final discision on this matter.


Actually, the extension does not work fine. Take my word for it, I wrote it. :-)

I haven't looked at the code for years, but unless you made some modifications to it, it could crash Explorer on pre-W2000 if you mark a lot of files, due to overflows in the registry and other oddities. Not that it applies in this particular case though. However, you might want to migrate your stuff to another shell extension than CMenuExtender, since I can't really recommend anyone to use it any longer.

And in answer to another question, the license does not prevent reworking the code and redistribute it, as indeed MHz has already done.
thuun derboy
great tool, HOWEVER, 2.0 removed EDIT on my right click context menu, ouch!.
-gotta have edit for .reg .txt, etc to make speedy changes.
...resolve conflict??
MHz
Check within Folder Options -> filetypes for correcting those extensions. I see nothing to fix in CMenu.

Added a new version. Check the 1st post for details.
headroom
Good Job Mhz.
Thank's for it.
MHz
Thanks for the compliment, headroom. smile.gif
Jondar
@MHz

Thanks for a great little program. I found it invaluable to speed up some common tasks -- especially after replacing a hard drive, and having to install things again. It sped up some installs considerably.

I do have one question / request: Is there any way to install CMenu to somewhere other than %ProgramFiles%\CMenu ? i.e. specify an install path on first run / install? I did try something like this after installation (by moving the CMenu folder elsewhere, then replacing all the CMenu registry entries I could find to point to the new location, but it seems that the %ProgramFiles%\CMenu path is hard-coded in some places?

Any suggestions / thoughts on this?

Thanks in advance

-- Jondar
MHz
Currently, there is no option to where CMenu will install. It will install to %ProgramFiles%\CMenu and will operate correctly only from that path. I am unsure currently of changimg this behaviour as the installation routine relies on it. I will look into the possibilities of change and see if it can easily be done, but no promises.
Jondar
QUOTE (MHz @ Nov 9 2005, 12:08 AM) *
Currently, there is no option to where CMenu will install. It will install to %ProgramFiles%\CMenu and will operate correctly only from that path. I am unsure currently of changing this behaviour as the installation routine relies on it. I will look into the possibilities of change and see if it can easily be done, but no promises.


@MHz

Thanks for the quick response, and thanks for at least looking into the suggestion I offered.

I figured that there was a reason why the particular folder, thanks for clearing it up.

I suppose I can live with CMenu's default install folder for the time being smile.gif -- After all, certain other programs I have from certain sites *cough*Google*cough* do the same thing (offer no install path customisation)

Thanks again,

-- Jondar
MHz
I have changed some the code to allow a install path by commandline. Once you have used that path, then you are stuck with it. A reinstall will check for the previous path and will use that. As CMenu cannot change existing registry entries by installation, then existing installations will not be valid of using this additional switch. If you are determined enough, the next version would give you are chance to change the reinstall path but you would have to clear or change the registry entries yourself (which you tried to do already anyway).
I should have another release soon as testing if ok etc. No big feature additions, but mostly concept changes. Someone did reported to me that Ini2Au3 did overwrite their existing file (which is the same name as the Ini) and I forgot to add a suffix to the file output. Ini2Au3 does use the Recylebin for recovery to discard like many other items. So I have made some changes to improve at any cost the reliability for no surprises to happen. Warnings, Save dialogs etc will be given notice to avoid any issues. That would mean Recylebin not needed anymore. Clipboard capability etc will be present to still allow fast handling of operation. I like fast handling like anyone else. newwink.gif
coucou
Wow!!!!!!!!!
TNX MHz Realy GREAT WORK thumbup.gif

BTW, I tested it right now to identify AWicons Pro 9.2.0 installer, it couldn't.
The installer is Core Installer and it's not on yr installer list.

Regards
coucou
MHz
QUOTE (coucou @ Nov 11 2005, 04:04 AM) *
The installer is Core Installer and it's not on yr installer list.

Thanks coucou. Have you found any information on this installer worth using? I have tried googling for information but come up with nothing. If I try /? on it, I get a "Do you want to report this to Microsoft" message.
The way that I see of using this installer is to perhaps automate it with an AutoIt script. Have a look in your contextmenu for "More Options -> Installer Tools -> AutoIt Automated Script" or if it was not Identified then you are given further options there.
If you find some useful information on this installer then let me know.
coucou
Hi MHz,

I didn't find any info neither.
I started automated it with AutoIt, then i was sticked with the first windows. I couldn't uncheck the 3 [Advanced Options] (here bellow the image):
- Create a shortcuts on the desktop
- Run the program after the installation
- Open the Readme.txt file after the installation
There is NO uncheck selection individual/together. Moreover at the end of the install, many windows are opened... too much work!

Finally, I found the answer for this special program. I istalled it normaly, then just copy the directory, there is no installation needed.

Regards
coucou
Crash&Burn
Sounds like this is utilizing the DLL from Revenger Inc's CMenuExtender 1.2, which had a pretty serious memory leak, though I didn't bother to track down whether the leak was in cmext.dll or the executable cmexted.exe. If the latter then no problem...
MHz
QUOTE (Crash&Burn @ Nov 11 2005, 08:44 PM) *
Sounds like this is utilizing the DLL from Revenger Inc's CMenuExtender 1.2, which had a pretty serious memory leak, though I didn't bother to track down whether the leak was in cmext.dll or the executable cmexted.exe. If the latter then no problem...

I have seen other posts of yours, and to be quite honest, I do not care about your opinion. Technically, I think you are looking in the wrong spot for the memory leak wacko.gif .


Version 2.2 is released. I currently will not accept further requests as this free program has been Crash&Burned. I have spent enough of my free time on this to try to make life easier for the good people. I would like to thank anyone who has been supportive of CMenu. I may consider a future version if only to maintain it's operational intregrity or other minor issues.

Thankyou,
MHz

P.S. Jondar, use CMenu.exe /silent /dir "%programfiles%\customfolder" to install to your custom folder. Using this on an existing installation will mean that the registry entries would need to manually be redirected with their paths. Once used then the path is set, even reinstalls will use that path. It's in the helpfile also.
Crash&Burn
*smirk* How professional of you.
totoymola
Just want to inform you guys that I am not affected by any bugs in the previous versions.

Thanks MHz. smile.gif Long time.. smile.gif
MHz
Hi (Watsup) totoymola,

I try to iron out bugs if at all possible. newwink.gif

Your welcome totoymola. Long time..., well, trying to track down which forum you are visiting is the hard part, lol biggrin.gif .
MHz
I have been notified by PM of BandWidth Exceedance of CMenu site. Thanks MtDew12oz for the info.

RapidShare Download Link has been added to the 1st post.

News: Some options in Identify Installer were not being enabled but are now enabling correctly now in the version upload to RapidShare.

Enjoy.
The Black Cloud
Mirror for download

Here
MCT
hey Mhz, i just started using cmenu, i like it, 2 things maybe u can implement?

modifype & Cab in/out ?
Halfwalker
Hi MHz -

I just pulled down the latest 2.3, and something seems a little weird with the silent install. It's in the RunOnceEx.cmd like this :

CODE
REG ADD %KEY%\%NUM% /V 20 /D "%DIR%\CMenu.exe /silent" /f


Yet during the install, it pops up with these windows, one after another :



I click yes to move from one to the other.

What did I goof up ? This one is 1,484,770 bytes in size.

D.
MHz
Your RunOnceEx command looks fine.
The windows are automated and have a 5 second timeout for the wait. If you have a window idle for more then 5 seconds then it is fair to say that the automation has failed to deal with the window and manual assistance maybe needed. There is a very small chance that failure can happen for an unknown reason. Heh, lightning normally does not strike the same spot twice so your next install should be a success.
Halfwalker
Ah, OK, thanks. Now that you mention it, those windows haven't popped up every time. I thought I had messed something up somewhere during each iteration of the CD.

Thanks again -

D.
rikgale
I get these windows everytime, but they only apper for less than half a second each and also cause the computer to beep at each window, which scares the living daylights out of me each and everytime.

It always work, thought, so I dont care. Gotta have something to keep me awake.

A quality product. Thanx MHz

Rik smile.gif
Weed
too bad, cmenu doesnt for windows x64...
MHz
@rikgale
Glad you like CMenu too. smile.gif

@Weed
Sad that x64 doesn't support CMenu and I am not sure as to why exactly. I guess CMenu is available for only 32bit OSes sad.gif


I have uploaded CMenu v2.4 which fixes some minor bugs. See the 1st post for details.
MAVERICKS CHOICE
@MHz

Nice update.

Cheers

MC.
Yurek3
I did use many times CMenu but i do not did use make Autoit script , now i try .
I did Autoit script but not work , only starting first insttalation window.

Here is my Autoit skript for Total commander
QUOTE
#region - tcup16 install script - (Automated with WinExists functions)

Opt('TrayIconDebug', 1)
Opt('WinDetectHiddenText', 1)
Opt('WinTitleMatchMode', 4)

; Installer.
$executable = 'tcup16.exe'
; Show progess.
$splash = 0
; Default catagory folder in startmenu.
$group = ''
; New catagory to move the default folder into.
$catagory = ''
; Installation folder in Program Files.
$directory = ''
; Allowed time for installation.
$allowed = 60 * 1000

; Run the installer.
$pid = _Install()
$time = TimerInit()
Do
Select
Case WinExists('', '')
ControlClick('', '', '')
Case WinExists('', '')
ControlClick('', '', '')
Case WinExists('', '')
ControlClick('', '', '')
Case WinExists('', '')
ControlClick('', '', '')
Case WinExists('', '')
ControlClick('', '', '')
Case Else
Sleep(250)
EndSelect
Sleep(10)
If TimerDiff($time) > $allowed Then _Abort()
Until Not ProcessExists($pid)

; Remove shortcuts.
If _MainShortcut('?.lnk') Then
; Relative to shortcut directories
; Remove Startmenu shortcuts
FileDelete('?.lnk')
FileDelete('?.lnk')
FileDelete('?.lnk')
FileDelete('?.lnk')
FileDelete('?.lnk')
; Remove other shortcuts
_Desktop('?.lnk')
_QuickLaunch('?.lnk')
EndIf

#endregion

Exit

Func _Install($path = 'Default')
; Run the installer in Default Script directory.
Dim $splash, $processblock
If $path = 'Default' Then $path = @ScriptDir
If StringRight($path, 1) <> '\' Then $path = $path & '\'
If StringInStr($executable, '\') Then $path = ''
If Not FileExists($path & $executable) Then Exit 1
If $processblock <> '' Then Call('_' & 'ProcessBlock')
If $splash Then _Splash('Installing:' & StringTrimRight(StringReplace(@ScriptName, '_', ' '), 4))
If StringRight($executable, 3) = 'msi' Then
Return Run(@SystemDir & '\msiexec /i "' & $path & $executable & '"')
Else
Return Run($path & $executable)
EndIf
EndFunc

Func _Abort()
; close process if exists then exit.
Dim $pid
If ProcessExists($pid) Then
ProcessClose($pid)
Exit 2
Else
Exit 3
EndIf
EndFunc

Func _Desktop($shortcut)
; Delete a Desktop shortcut.
If FileExists(@DesktopDir & '\' & $shortcut) Then
Return FileChangeDir(@DesktopDir) And FileDelete($shortcut)
ElseIf FileExists(@DesktopCommonDir & '\' & $shortcut) Then
Return FileChangeDir(@DesktopCommonDir) And FileDelete($shortcut)
EndIf
EndFunc

Func _MainShortcut($shortcut, $rename = '')
; Change working directory to correct StartMenu\Group directory.
Dim $group, $catagory, $splash
If $group = '' Then Return 0
If FileExists(@ProgramsDir & '\' & $group) Then
FileChangeDir(@ProgramsDir & '\' & $group)
ElseIf FileExists(@ProgramsCommonDir & '\' & $group) Then
FileChangeDir(@ProgramsCommonDir & '\' & $group)
Else
Return 0
EndIf
; Wait for main shortcut.
If $splash Then _Splash('Waiting for shortcuts')
For $i = 1 To 20
If FileExists($shortcut) Then ExitLoop
Sleep(500)
Next
If $splash Then _Splash('Cleaning up:' & StringTrimRight(StringReplace(@ScriptName, '_', ' '), 4))
; If catagory not assigned anything, then return.
If $catagory = '' Then Return 1
; Move the group folder into the catagory folder.
If FileChangeDir('..') And DirCopy($group, $catagory & '\' & $group, 1) Then
If DirRemove($group, 1) Then
; If optional rename parameter is used, then rename the group folder.
If $rename <> '' And FileChangeDir($catagory) Then
If DirCopy($group, $rename, 1) And DirRemove($group, 1) Then
Return FileChangeDir($rename)
EndIf
Else
Return FileChangeDir($catagory & '\' & $group)
EndIf
EndIf
EndIf
EndFunc

Func _QuickLaunch($shortcut)
; Delete a Quicklaunch shortcut.
Local $subdirs = '\Microsoft\Internet Explorer\Quick Launch'
If FileExists(@AppDataDir & $subdirs & '\' & $shortcut) Then
Return FileChangeDir(@AppDataDir & $subdirs) And FileDelete($shortcut)
ElseIf FileExists(@AppDataCommonDir & $subdirs & '\' & $shortcut) Then
Return FileChangeDir(@AppDataCommonDir & $subdirs) And FileDelete($shortcut)
EndIf
EndFunc

Func _Splash($text = '')
; Shows a small borderless splash message.
Dim $splash
If $splash Then
If $text Then
SplashTextOn('', $text, 500, 25, -1, 5, 1, '', 14)
Else
SplashOff()
EndIf
EndIf
EndFunc

Func _WinClose($title, $text = '')
; Close a window with further attempts.
For $i = 1 To 10
WinClose($title, $text)
If Not WinExists($title) Then Return 1
Sleep(500)
Next
EndFunc

Func OnAutoItStart()
; A 2nd script instance will exit.
Local $interpreter
If StringInStr($cmdlineraw, '/dummy') Then Exit
$interpreter = StringTrimRight(@ScriptName, 4) & ' Script Interpreter'
If WinExists($interpreter) Then Exit
AutoItWinSetTitle($interpreter)
EndFunc


where i need write some options , will work good
how somebody can put here goodone sript ( thisone or other from CMmenu i will very glad)
i now we have Autoit Forum but my engish is not too good

Yurek3
MHz
Yurek3,

Make sure that you read the CMenu Helpfile. In the Identify Installer page is some links at the bottom which shows a simple example. The Helpfile does let you know of the tasks to be done by you to complete the script as the scipt created is just based on a template. The script needs editting between the "#region" and "#endregion" fold keywords.

As for using 'tcup16.exe, I would guess you have the 16 bit version that is used on Windows 3.1.
I will show a working example script of installing the 32 bit version.

View Script: Click to view attachment
Download Script: Click to view attachment

The CMenu Helpfile does mention that the WinExists type of script can be the most advanced, so using a WinWait script might make it easier for you to learn making an automation script. Silent installation scripts made by Identify Installer are also available for installers that support silent install.

smile.gif
Yurek3
Thenks a lot i will learn Auotit script.

One more thinks

You did Autoit script for exist now you can do waits please.

step by step

big THX for You
MHz
Yurek3,

I converted the Total commander using WinExist() with a Loop, into a WinWait() script for you.

View: Click to view attachment
Download: Click to view attachment

You will notice the scripts are similar but WinExist() will check multiple windows at once to process the first match with the condition of the loop, while WinWait() is one window to handle, then the next window to handle so is easier to manage for new users of AutoIt3.

newwink.gif
Jorex
Hello friends, I am wanting to create an installation for the program Nitro PDF Pro, however I am having difficulties to do.
If somebody can me to help I thank.
this is the link: http://www.nitropdf.com/Professional/trial.asp
I want the script to close the program and also close the page of the site that opens in the end.

I thank to who can me to help.
MHz
QUOTE (Jorex @ Aug 19 2006, 07:14 AM) *
I want the script to close the program and also close the page of the site that opens in the end.

If you have a script made and need some help, then I'm sure that I or someone else maybe able to help you with the problems in your script. There are some samples above of using scripts made with CMenu templates.
I'm sure that ProcessClose() can perhaps handle your issues.
smile.gif
MHz
Finally found some spare time to release an update. Please see 1st post for information and download details for v2.6.

smile.gif
maxXPsoft
Wishlist:
Update your install to use Innosetup so will install over the top of existing.
Perhaps using the Ignore Version Flag

When I ran this new ver 2.6 it acted like it uninstalled the old then I ran again and got that fatal error file in use, reboot is only thing to delete the existing Prog Files and then had to run the install again.

InnoSetup is much much better Installer, Silent, more powerfull and free.
MHz
I did notice an uninstall issue with 2.5. It is corrected hopefully in v2.6. Working fine for me. The dll cannot be unloaded and removed unless explorer is restarted, but that should be fine for a reinstall as the dll is always same version. CMenu.exe is set to run for a further 10 seconds to monitor for issues after you open the editor, so if you uninstall after using the editor and during that 10 seconds then you may get an in use issue with replacing CMenu.exe. Simply checking task manager and killing CMenu.exe if you do notice an issue may save the reboot. Other then that, I am unaware of further issues that can happen that you may have. I would consider the error you may have seen was generated by code in CMenu as a warning.

The installation is handled internally, so the need for an external application is not used for the install routine. It would be a major change within the code to allow an external use of Inno Setup, but maybe in future I maybe able to change the current setup.
Nightlord
Is there a way to integrate this new version of cmenu?
ricktendo64
I made a silent switch addon http://www.ryanvm.net/forum/viewtopic.php?...&highlight=

Make your own addon with Cretèur Addon
nLite Addon Maker
nLite Plugin Creator

Use CMenu to find the switches
Jorex
Thank to all! I already solved the problem with Nitro PDF I used CMenu.

Would like to know more commands to use in CMenu.
example: sleep = timer
where do I find other?
Jorex
QUOTE (MHz @ Aug 19 2006, 05:09 AM) *
QUOTE (Jorex @ Aug 19 2006, 07:14 AM) *

I want the script to close the program and also close the page of the site that opens in the end.

If you have a script made and need some help, then I'm sure that I or someone else maybe able to help you with the problems in your script. There are some samples above of using scripts made with CMenu templates.
I'm sure that ProcessClose() can perhaps handle your issues.
smile.gif



Ok, my friend,
see if you can me to help with this shell of IrfanView ShellExtension 125kb.

See more in this site, the program is small
http://www.sharewareconnection.com/irfanvi...llextension.htm

I tried in several ways and I didn't get.
Thank you for your help.
MHz
QUOTE (Jorex @ Aug 30 2006, 05:42 AM) *
Would like to know more commands to use in CMenu.
example: sleep = timer
where do I find other?

Have you looked in the helpfile? I'm sure I have added enough information within it to help the user.

QUOTE (Jorex @ Aug 31 2006, 07:20 AM) *
Ok, my friend,
see if you can me to help with this shell of IrfanView ShellExtension 125kb.

See more in this site, the program is small
http://www.sharewareconnection.com/irfanvi...llextension.htm

I tried in several ways and I didn't get.
Thank you for your help.

I have looked into the installer and it is deceptive to get the correct ContolID's for the buttons, but I did get them. If it came to being too differcult to find for you, then the controls text could be used as the ControlID.
This is the script code I finished with.
Click to view attachment
Jorex
You got...
Thank you very much! You are very good.
Jorex
Hello friend,
A problem happened in the installation CMenu that you did for me.
I copied the whole text and I glued in a Script, later I ordered to begin and appeared this mistake.



What should I make?
MHz
Please download the latest AutoIt3 installer released. AutoIt version 3.2.0.1 is the latest that will support the syntax used. I'm sure that error will not happen when 3.2.0.1 is used as the previous version of AutoIt3 did not support the keyword Default.

http://www.autoitscript.com/autoit3/

smile.gif
Jorex
Thank you very much!
This new AutoIt solved my problem.
PopRocks
Hi. Great program, I am using it to find switchs that ussf can't tell me. Sometime how ever it asks me to indentify the installer. As I am noob in this area, I was hopeing some one could give me some advice. I have googled how to indentify them but as yet I have not come up with any ideas. any help would be greatly appreciated. Thanx
MHz
QUOTE (maxXPsoft @ Aug 24 2006, 12:59 AM) *
Wishlist:
Update your install to use Innosetup so will install over the top of existing.

Decided not to do it with CMenu, but I have used Inno Setup with the new SendToA3X. I have added most the features from CMenu over to SendToA3X so it uses the inbuilt SendTo extension that Windows uses instead of the 3rd party shell extension. I guess your wish basically come true on using Inno Setup for the move to using SendToA3X.

You can get v1.0 from http://uawiki.org/CMenu/

cool.gif

Edit:
Separate Topic for SendToA3X below for further discussion on it.
http://www.msfn.org/board/index.php?showtopic=83388
faresalandlos
thanks>>>>>> i will try it




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.