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

    • Gotenks98 is right... Outlook (new) is absolute trash. Doesn't Mozilla have an Enterprise Version of Firebird?
    • Microsoft Weekly: Surface Laptop Ultra, Windows 11 context menus, Build 2026 recap, and more by Taras Buria This week's news recap is here, with Microsoft announcing the new Surface Laptop Ultra, fresh chips from NVIDIA for Windows on ARM, a no-build week, fixes for Windows 11's context menus, gaming news, reviews, and more. Quick links: Windows 10 and 11 Windows Insider Program Updates are available Reviews are in Gaming news Great deals to check Windows 11 and Windows 10 Here, we talk about everything happening around Microsoft's latest operating system in the Stable channel and preview builds: new features, removed features, controversies, bugs, interesting findings, and more. And, of course, you may find a word or two about older versions. At Computex 2026, together with NVIDIA, Microsoft announced the Surface Laptop Ultra, its most powerful laptop to date, powered by NVIDIA's RTX Spark processor. Details about this computer are currently scarce, as Microsoft has only revealed certain parts of its specs. So far, we know that the computer has a 15-inch mini-LED display, a rich set of ports, a powerful processor, and all-day battery life. It also comes with a new wallpaper, which you can already download here in full resolution. The Surface Laptop Studio is not the only NVIDIA-powered Surface, which Microsoft unveiled this week. At Build 2026, the company also debuted the Surface RTX Spark Dev Box, an odd-shaped desktop with a 20-core NVIDIA Grace CPU and an NVIDIA Blackwell RTX GPU with 6,144 CUDA cores and fifth-generation Tensor Cores with FP4 precision, connected via the NVIDIA NVLink-C2C chip-to-chip interconnect for high performance. According to Microsoft, it can run models with up to 120 billion parameters locally without relying on cloud GPU infrastructure. These two new Surface devices are likely to cost quite a lot, and for those who need a more affordable device, Microsoft is preparing the next-gen Qualcomm-powered Surface Pro and Surface Laptop. This week, details about these two devices leaked in plenty of detail. Other announcements at Build 2026 include the following: Microsoft unveils new security tools for IT admins and developers building AI products Microsoft announces Scout, an OpenClaw-powered personal agent for enterprise customers Microsoft unveils MAI-Thinking-1 reasoning and MAI-Code-1 coding models Microsoft announced a new Windows 11 native command-line utility Microsoft unveils Majorana 2 quantum chip, accelerating commercial timeline to 2029 Microsoft believes that AI agents will eventually replace apps through Project Solara Microsoft introduces Web IQ, a Bing-powered search system built for AI agents Last week, Microsoft released a new Experimental build, which introduced a major Start menu upgrade. It now lets you toggle off specific parts of the menu without affecting other features, resize the menu, and hide additional UI elements. We published a closer look here, so if you want to know what Microsoft is cooking without enrolling in the Insider program and installing unstable builds, check it out. Speaking of new features, many users are very annoyed about the way Microsoft delivers them. Recently, a frustrated user shared their experience with gradual rollouts, and even Microsoft engineers admitted there is a flaw in the system that prevents new features from applying properly. One of those new features includes the ability to uninstall AI models in Windows 11 with a single click. Windows 11 is finally getting fixes for its slow context menus. Marcus Ash from Microsoft confirmed that the company is working on fixing Windows 11's context menus. Reworked context menus are going to be faster, simpler by default, and "configurable to what you use most." According to Marcus, Microsoft will share more details soon. Windows Insider Program Windows 11 preview builds, released last week, are now available for download as standalone ISO files. These days, Microsoft regularly pushes new images, allowing users to clean-install its recent Windows 11 preview builds faster and easier. If you want to try the latest Windows 11 features without jumping through the Windows Update hoops, get those new images here. Sadly, Microsoft did not release new Windows 11 preview builds this week. Come back next time. Updates are available This section covers software, firmware, and other notable updates (released and coming soon) delivering new features, security fixes, improvements, patches, and more from Microsoft and third parties. Microsoft is preparing new features for Teams. Later this month, the messenger will receive a new download manager with auto-dismissing notifications, reducing clutter and making the overall experience less annoying when dealing with downloads. Mozilla released Firefox 151.0.3, a new bug-fixing update for the browser. It is a small release, which fixes problems with pasting into text fields and the oversized VPN button on the toolbar. The update is now available for all users in the Release channel. Here are other updates and releases you may find interesting: VS Code 1.123 introduces massive upgrades for persistent AI developer workflows Microsoft OneDrive is getting a simple yet much-needed feature Microsoft faces heat after quietly blocking promised Office features on Apple systems Microsoft resumes forced Copilot app installation on some Windows PCs Browser vendors pen an open letter to Microsoft, saying "enough is enough" Here are the latest drivers and firmware updates released this week: AMD Radeon Software 26.6.1 with optimizations for F1 25: 2026 Season, World of Tanks: HEAT, and various bug fixes. Reviews are in Here is the hardware and software we reviewed this week Steven Parker dropped more mini PC reviews this week. GEEKOM Air12 2026 Edition is a low-power, affordable computer with an Intel Tiger Lake Pentium Gold processor, up to 16GB of memory, and 512GB of storage, costing just $349. It is light, quiet, energy efficient, and has modern ports on the front. However, the front-facing USB Type-C is data-only, and there are some quirks with the computer's memory, so check out the full review. The AMD RX 9070 GRE has been released worldwide, and we published a benchmark review comparing this powerful graphics card to the RX 9070 XT, 7800 XT, the NVIDIA RTX 5070, and RTX 4070. It has solid, balanced performance, plenty of RAM, and low temperatures, but watch out for mediocre ray tracing performance and not the best efficiency. Also, we reviewed the Cuktech 10 Ultra, a compact, high-power charger with four ports and a big display full of various stats. This tiny charger can pull nearly 120W and spread that power according to each connected device's needs. It also comes with a high-quality 240W cable, three power modes, and retractable prongs. The best part? It is quite affordable, just make sure you have an outlet placed in the right spot to benefit from the built-in display. On the gaming side Learn about upcoming game releases, Xbox rumors, new hardware, software updates, freebies, deals, discounts, and more. Do you remember the ASUS ROG Xbox Ally, Microsoft's first handheld console designed in partnership with ASUS? This week, ASUS revealed a new version of the device to celebrate twenty years of its Republic of Gamers brand. The new ROG Xbox Ally X20 features an OLED display, a transforming D-Pad, TMR sticks, and other changes. However, the chip inside the console is still the same. Forza Horizon 6 launched last month to critical acclaim, but the game will soon have a new rival made by those who used to work on Forza Horizon titles. Mike Brown from Maverick Games announced Clutch, an upcoming racing game with a story-driven campaign, deep car customization, and rich multiplayer. The game is coming to PC, Xbox Series X|S, and PlayStation 5 in Spring 2027. The next update for Minecraft now has a release date. This week, Mojang announced that Chaos Cubed will be available on June 16, 2026. In addition, Mojang published a teaser of the next Minecraft movie. A Minecraft Movie Squared has now been confirmed for a release somewhere in 2027. NVIDIA GeForce Now is getting 18 new games in June. Those include Jurassic World Evolution 3, Fatekeeper, GOALS, Gothic 1 Remake, NTE: Neverness to Everness, and more. If you are a Game Pass subscriber, you can also get new games soon: Persona 5 Royal, Starseeker: Astroneer Expeditions, and more are coming to the service this month. Sumer Game Fest 2026 happened this week, where we saw plenty of new games, including Alien Isolation 2, Final Fantasy VII Remake Part 3, Gen Atlas from the Shadow of the Colossus creator, a new Cuphead game in 8-bit style, a new expansion for Mafia: The Old Country, and more. Finally, here are this week's Weekend PC Game Deals, full of discounts and the latest freebies from the Epic Games Store. Other gaming news includes the following: God of War Laufey announced, introducing Kratos' wife as the new protagonist Ori studio's No Rest for the Wicked 1.0 release and console plans announced Microsoft launches Godot Sample to streamline Xbox PC game development on the engine Great deals to check Every week, we cover many deals on different hardware and software. The following discounts are still available, so check them out. You might find something you want or need. Samsung 990 PRO SSD 2TB NVMe - $389.99 | 39% off Sonos Sub 4 - Wireless Subwoofer - $759 | 16% off Logitech MX Creative Console - $159.99 | 20% off This link will take you to other issues of the Microsoft Weekly series. You can also support Neowin by registering for a free member account or subscribing for extra member benefits, along with an ad-free tier option.
    • Let's goooooooo! I've been loving the entries so far! I still have to finish Rebirth (things have been busy!)! Excited for this next installment.
    • "Revelation?" I was hoping for this episode to be called "Reunion". Oh, well... In a related note, the Final Fantasy VII compilation has received an EC entry, short for Ever Crisis. For those who don't know, it already had AC, BC, CC, and DC entries, short for Advent Children, Before Crisis, Crisis Core, and Dirge of Cerberus. I hope it doesn't get an FC entry becaude that would be a freakin' crisis.
  • Recent Achievements

    • Week One Done
      pestcontrol46 earned a badge
      Week One Done
    • One Month Later
      pestcontrol46 earned a badge
      One Month Later
    • Week One Done
      JKR earned a badge
      Week One Done
    • Rookie
      moog19 went up a rank
      Rookie
    • Mentor
      grik went up a rank
      Mentor
  • Popular Contributors

    1. 1
      +primortal
      515
    2. 2
      PsYcHoKiLLa
      277
    3. 3
      Skyfrog
      76
    4. 4
      +Edouard
      71
    5. 5
      FloatingFatMan
      68
  • Tell a friend

    Love Neowin? Tell a friend!