Recommended Posts

Another question.

I'm creating standalone module for poweroff, all ok, but for detection?

These are the lines of poweroff.amc:

[AutoPatcher 5.0 Module]

[Configuration]

Name=Poweroff 3.0.1.3

Author=Jorgen Bosman

Description=Poweroff ? uno strumento che consente di spegnere o riavviare automaticamente il pc.

ParentID=STAND_ALONE_ENU

UniqueID=Stand_alone

URL=

Default=False

Expand=False

PicturePath=

ETA=5

NeedsRestart=False

Language=1040

TargetOS=ANY_2K_VERSION,ANY_XP_VERSION

TargetIE=ANY_IE

Priority=20051110

[Detection]

RegistryKey=

RegistryData=

RegistryValue=

[install With Backups]

md "%programfiles%\PowerOff"

copy "Module:\poweroff.exe" "%PROGRAMFILES%\PowerOff\poweroff.exe"

[install Without Backups]

same:

@Massimiliano2

you need to delve into your registry and find something that can identify the version of the software.

- right click the registry key path (think of it as a folder) and select 'copy key name'. paste it after 'registrykey='. Note use shorthand for the hives (e.g. 'HKEY_CURRENT_USER' should be 'HKCU')

- copy the value (think of this as a file) name and paste after 'registrydata='

- copy the data in the value, and paste after 'registryvalue='

note, either me or raptor have got the terms 'data' and 'value' mixed up, but what i mean by 'value' is like a file, and 'data' the data in the file (value).

also, i note this module is for LCID 1040.

if the same setup file can be used for english windows, you need to follow AIO rules (see translation documentation). the .amc file should be named like 'poweroff_ita.amc', the folder 'poweroff', and the setup instructions should use 'autopatcher:\modules\stand_alone_mods\poweroff\poweroff.exe'.

this means there isnt two copies of the setup/program file in two seperate folders, and the one folder is shared with one or more .amc files of different languages.

The problem is that poweroff is an utility standalone... there is a file poweroff.exe. :unsure:

can poweroff.exe be use on english windows and not just italian (1040) ?

if its just specifically for itallian windows then have:

poweroff_ita.amc

poweroff_ita.amc_files / poweroff.exe

if it can be used on multiple language versions of windows, have:

poweroff_ita.amc (containg the ita translation)

poweroff / poweroff.exe (containing the shared file)

in the first instance, because the folder name is the same as the .amc (ignore the '_files' bit), you would use 'module:\poweroff.exe' in the setup instructions.

in the second instance, the folder name is not the same, so you would have to use 'autopatcher:\modules\stand_alone_mods\poweroff\poweroff.exe' to access it (note 'autopatcher:\' refers to autopatcher.exe's location).

It's the second istance, done!

But the real problem is detection.

Autopatcher can detect the folder of installation specified (example, c:\program files\poweroff\poweroff.exe)??

What's the command line or condition?

AP 5.1 doesnt have file detection, just registry detection. file detection will come in AP 6.x

if theres nothing in the registry to use, do this:

1) create a setup file called 'inst.apf' and include it alongside poweroff.exe

2) in inst.apf past the following code

Windows Registry Editor Version 5.00

;AutoPatcher Detection
[HKEY_LOCAL_MACHINE\SOFTWARE\AutoPatcher]
"PowerOff"="3.0.1.3"

3) use the following detection

RegistryKey=HKLM\SOFTWARE\AutoPatcher
RegistryData=PowerOff
RegistryValue=3.0.1.3

note, if it only applies to the current user, replace 'HKLM' with 'HKCU' and 'HKEY_LOCAL_MACHINE' with 'HKEY_CURRENT_USER'.

Works!

Final lines of poweroff_ita.amc:

[AutoPatcher 5.0 Module]

[Configuration]

Name=Poweroff 3.0.1.3

Author=Jorgen Bosman

Description=Poweroff ? uno strumento che consente di spegnere o riavviare automaticamente il pc. Guida: http://www.megalab.it/articoli.php?id=295

ParentID=STAND_ALONE_ENU

UniqueID=Stand_alone

URL=

Default=False

Expand=False

PicturePath=

ETA=5

NeedsRestart=False

Language=1040

TargetOS=ANY_2K_VERSION,ANY_XP_VERSION

TargetIE=ANY_IE

Priority=20051110

[Detection]

RegistryKey=HKLM\SOFTWARE\AutoPatcher

RegistryData=PowerOff

RegistryValue=3.0.1.3

[install With Backups]

md "%programfiles%\PowerOff"

copy "autopatcher:\modules\stand_alone_mods\poweroff\poweroff.exe" "%PROGRAMFILES%\PowerOff\poweroff.exe"

regedit /s "autopatcher:\modules\stand_alone_mods\poweroff\inst.apf"

[install Without Backups]

same:

@Massimiliano2, well all your really doing is writing a batch file (.bat or .cmd).

autopatcher copies the install instructions to a .bat or .cmd file in your temp directory, replaces the relative paths using 'module:\' and 'autopatcher:\' with the full direct paths paths, runs the batch file, and deletes it again.

you could use:

copy "autopatcher:\modules\stand_alone_mods\poweroff\subfolder\*.*" "%PRORAMFILES%\poweroff\subfolder\*.*"

to copy everything in a subfolder of the power off folder across.

im not 100% sure if it'll also copy subfolders of the subfolder.

you should still use the other command to specifically copy poweroff.exe, else using *.* in that folder will also copy inst.apf which you dont want!

Please can you verify if these standalone modules are ok for an official release?

I'm with dkdk_it for pubblication of italian release.

These are few megabytes:

http://rapidshare.de/files/14133733/modules.rar.html

Edited by Massimiliano2

@Massimiliano2,

there were a few problems, but ive fixed them and encrypted your mods.

problems:

1) not all .amc files had '_ita' in the name, meaning if and when combined with english copies, the'd over write them instead of existing side by side. ive renamed them and altered the install paths.

2) optimised regseekers install instructions, swapping out about 11 lines with a single one! (using *.* to copy all files in the subfolder!).

3) replaced tweaks_ita.amc with the official one from the upcomming italian release.

delete your copies before extracting mine so you get rid of the stuff i renamed!

http://rapidshare.de/files/14140814/modules_enc.rar.html

ive spotted a few slight AIO mistakes in the few mods i downloaded to look at. i think i'll soon go through all the ones on the front page and correct any mistakes.

In the meantime, I've done other corrections, encryption required:

http://rapidshare.de/files/14302722/modules.rar.html

Please see also the problem above this post. (the color is black, therefore the module is encrypted, but still appears not official).

Edited by Massimiliano2

@Massimiliano2

sorry, it took so long for me to get round to. here are your new modules. extract to autopatcher/modules/

http://rapidshare.de/files/14597810/modules2_enc.rar.html

i havent got a clue why thats happening in the above image...

  • 2 weeks later...

Hello.

First off, I'd just like to thank you *whole-heartedly* for all the effort you & the dev team / contributors have put into making this an *awesome* way for us to keep new systems in tip-top-shape without having to muck about grabbing everything from MS the slow way... ::D:

Second, a note about the "MegaUpload" site you've got your stuff hosted by - they're pushing porn pop-up's. :blink: :blush: :no: :angry:

I clicked the little red X to close the floating flash ad (grrr), waited the five seconds for it to show the "download here" link, and noticed a new window come up.

Thinking it might be a system notice (like "It'll be a few minutes for us to serve you this file - there are only 32,987,556 people ahead of you in line." or some such) only to stare at a "Click here to see live cam ######!" ad! Complete with NSFW / NSF-Minors images of graphicly-depicted actions that are DEFINITELY not legal in the United States...

Any chance you can point me to a repository that *doesn't* serve up porn ads?

Heck, send the latest stand-alone to me via email (it's Google, they don't care - use .RAR max compression if you like) and I'll grep a copy that way...

But having to dive for [CONTROL]+[W] (hot key to close the open tab) so my boss doesn't think I'm trying to get my butt fired... Nearly gave me a heart attack! :woot: :rofl: :devil:

But having to dive for [CONTROL]+[W] (hot key to close the open tab) so my boss doesn't think I'm trying to get my butt fired... Nearly gave me a heart attack! :woot: :rofl: :devil:

Nah, quit naggin, you download this great product for free + you get some free action :devil: . And if your boss

catches you up, excuse yourself by saying this download is essential for profit :), and that guys that make it are dirty old geezers :laugh:

Cheers and enjoy!

Nah, quit naggin, you download this great product for free + you get some free action :devil: . And if your boss

catches you up, excuse yourself by saying this download is essential for profit :), and that guys that make it are dirty old geezers :laugh:

Cheers and enjoy!

^^ Your a retard... Besides most people who use this are in a business/corporate environment and aren't using WSUS currently or can't get out of the firewall for WUS. You my friend fail to see that most employers are quick to take action against anything that is deemed derrogatory and crude. Especially something of the nature of half naked woman. They most likely don't work at a auto shop where this is something that could be put up without a flinching of the upper management.

I myself work at a hospital with mostly woman. They would have my head and kill my firstborn if I were to put up a picture of a half clad woman. Probably because they could only dream of being that hot. :shifty:

Don't get me wrong though the female body is a site to behold and can be the most beautiful thing to lay eyes and *cough* hands on. :woot:

Unless your just being sarcastic and in the case :blink: :p :D

Yes I am a troll with only 1 post... so?!?!? heh... Great program and I've used it since it came out.

:whistle:

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Qmmp 2.3.3 by Razvan Serea Qmmp (Qt-based MultiMedia Player) is a free, open-source audio player that delivers a classic music listening experience with a modern foundation. Inspired by the legendary Winamp, Qmmp features a familiar, customizable interface that supports both Winamp and XMMS skins, making it instantly recognizable to long-time users. It handles a wide variety of audio formats including MP3, OGG Vorbis, FLAC, WAV, AAC, and many others, ensuring smooth playback across diverse music libraries. In addition to basic playback, Qmmp offers advanced features such as a 10-band equalizer, crossfading, gapless playback, and audio visualization plugins. Users can manage playlists efficiently, create and save multiple lists, and even enable streaming from online sources. Plugin support extends the player’s capabilities, allowing integration of features like lyrics display, ReplayGain, and more. Built with the Qt framework, Qmmp runs smoothly and efficiently, making it ideal even for older systems. 10 great QMMP features you might not know: Global Hotkeys Support – Control playback using customizable system-wide keyboard shortcuts. CUE Sheet Support – Automatically detects and plays tracks from CUE files for full album playback. Last.fm Scrobbling – Integrated support for sending playback data to Last.fm. Audio CD Playback – Play music directly from audio CDs. Command Line Interface – Control Qmmp via command-line options for scripting or automation. System Tray Integration – Minimize to and control playback from the system tray. MPRIS Support – Integration with desktop media player controls via the MPRIS (Media Player Remote Interfacing Specification) interface. Spectrum Analyzer and Oscilloscope – Built-in visualizations for real-time audio feedback. Configurable Notifications – Custom pop-ups for track changes and playback status. Multiple Output Backends – Support for ALSA, PulseAudio, JACK, and more, offering flexible audio routing. Qmmp 2.3.3 changelog: fixed build with PipeWire versions less than 0.3.50; fixed settings dialog layout; fixed default CUE encoding; fixed possible null pointer dereference; fixed tracks order when added using drag and drop (2.3.3 only); fixed uninitialized structure usage; improved sid plugin: added libsidplayfp 3.0 support; added feature to build without residfp engine; fixed memory leak; fixed displaying audio information; updated Japanese translation (2.3.3 only). Download: Qmmp 64-bit | 24.0 MB (Open Source) Download: Qmmp 32-bit | 24.1 MB View: Qmmp Homepage | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • BATorrent 3.0.3 is out.
    • The current Statcoungter desktop numbers has Google Chrome increasing it's market share this past year and currently commanding 75% share. Everybody else is just making up the numbers with even MS Edge losing 3% this past year and has dipped just below 10% share which is staggering considering it's default on every Windows deviced purchased. If these numbers are correct that terrible Edge number is both devastating and embarrassing for MS especially when you add in the terribly low Bing market share. This leads me to ask a couple of questions as the default browser holding just less than 10% market share seems really weird. It used to be that all Chromium browsers were being counted as Google Chrome in some cases.  Is this still happening? Do these high Google Chrome numbers contains some Edge user numbers?
    • Yeah, all web browsers seem to have some junk in them these days. The regular Brave browser has a lot of unnecessary stuff in it, similar to Microsoft Edge, so I don't see any benefits of using Brave over Microsoft Edge if you already have Microsoft Edge fully set up with adblockers and that. The cleanest or best free browser outside of 'Microsoft Edge' I’ve tried so far is 'Opera Air'. It still has some bloat, but nowhere near as much as Brave browser, for example. I also really like the web browser called 'Floorp' that is based on Firefox. I have a system wide Adblocking program for Windows 11 that doesn't just blocks ads in the the web browser, but over the whole thing. I don't really need a web browser with an inbuilt adblocker because of that.
  • Recent Achievements

    • Rookie
      moog19 went up a rank
      Rookie
    • Mentor
      grik went up a rank
      Mentor
    • Dedicated
      JKR earned a badge
      Dedicated
    • One Year In
      CHUNWEI earned a badge
      One Year In
    • Conversation Starter
      FBSPL earned a badge
      Conversation Starter
  • Popular Contributors

    1. 1
      +primortal
      491
    2. 2
      PsYcHoKiLLa
      270
    3. 3
      Skyfrog
      75
    4. 4
      Steven P.
      68
    5. 5
      FloatingFatMan
      63
  • Tell a friend

    Love Neowin? Tell a friend!