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

    • "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.
    • Uh, after intense testing now, 'Samsung Browser' is not the best one outside of 'Microsoft Edge' after all. Opera Air is that. It has "some" bloat, but it's far less than what both Microsoft Edge and Brave browser have.
    • Weekend PC Game Deals: Resident Evil, Mafia, Like a Dragon, and more by Pulasthi Ariyasinghe Weekend PC Game Deals is where the hottest gaming deals from all over the internet are gathered into one place every week for your consumption. So kick back, relax, and hold on to your wallets. The Epic concluded its mystery giveaways this week with another double freebie promotion. As a part of this, you can now grab Rogue Waters and Songs of Conquest to keep. Songs of Conquest is a turn-based 4X strategy game where you'll be managing a kingdom, making tough decisions, and taking down enemy forces in tactical combat. Meanwhile, Rogue Waters is a roguelike where, as a pirate captain, you command a ship and crew through procedurally generated encounters. The double giveaway is coming to an end on June 11. On the same day, Warhammer 40K Speed Freeks will join in as the next freebie. Another Humble Choice offer was revealed earlier this week, bringing a refreshed eight-game selection to jump into. The June selection is Octopath Traveler 2, The Riftbreaker, Life is Strange: Double Exposure, INDIKA, Citizen Sleeper 2: Starward Vector, Construction Simulator, Hell Clock, and Overlooting to keep as Steam keys. The $15 bundle gives you all eight games from this month's Choice selection. The month-long promotion will come to an end on July 6, giving you ample time to decide on whether you want the titles. The Humble Store also brought in standard gaming collections this week. The IGN Live Bundle kicked things off with games like Control, Shadow Gambit: The Cursed Crew, Blair Witch, Rollerdrome, and The Last Campfire for $10. At the same time, the We Will Always be Here bundle carried in titles like Bad End Theater, Thirsty Suitors, Vampire Therapist, and Tavern Talk for $12. Next, the 2K Sports Champions Bundle comes touting games like NBA 2K26, PGA TOUR 2K25, OlliOlli World Rad Edition, and TopSpin 2K25 with a hefty $25 price tag. Lastly, the Redline Racing Bundle is touting games like Art of Rally, Descenders, Mudrunner, and Assetto Corsa Competizione with a $10 price tag. Big Deals The biggest promotions of this weekend come from franchise discounts for hits like Mafia, Like a Dragon, Resident Evil, and more. With all those and more, here's our hand-picked big deals list for the weekend: Mafia: The Old Country – $34.99 on Steam ARC Raiders – $31.99 on Steam Forza Horizon 5 – $29.99 on Steam Monster Hunter Wilds – $29.39 on Steam Satisfactory – $27.99 on Steam No Rest for the Wicked – $27.99 on Steam Satisfactory – $27.99 on Steam Esoteric Ebb – $19.99 on Steam Street Fighter 6 – $19.99 on Steam Cloudheim – $19.79 on Steam Pacific Drive – $17.99 on Steam Like a Dragon: Infinite Wealth – $17.49 on Steam ACE COMBAT 7: SKIES UNKNOWN – $14.99 on Steam Yakuza 0 Director's Cut – $14.99 on Steam Like a Dragon Gaiden: The Man Who Erased His Name – $14.99 on Steam Like a Dragon: Pirate Yakuza in Hawaii – $14.99 on Steam Grand Theft Auto V Enhanced – $14.99 on Steam Lost Judgment – $13.99 on Steam The Crew Motorfest – $13.99 on Steam Stronghold Crusader: Definitive Edition – $12.59 on Steam The Stanley Parable: Ultra Deluxe – $12.49 on Steam Blood West – $12.49 on Steam Yakuza Kiwami 2 – $11.99 on Steam Judgment – $11.99 on Steam Like a Dragon: Ishin! – $11.99 on Steam Alien: Isolation – $11.99 on Steam Goat Simulator: Remastered – $10.19 on Steam Resident Evil Village – $9.99 on Steam Yakuza 4 Remastered – $9.99 on Steam Yakuza 5 Remastered – $9.99 on Steam Yakuza 6: The Song of Life – $9.99 on Steam Caravan SandWitch – $9.99 on Steam Spyro Reignited Trilogy – $9.99 on Steam Assassin's Creed III Remastered – $9.99 on Steam The Expanse: A Telltale Series – $9.99 on Steam Sons Of The Forest – $8.99 on Steam Untitled Goose Game – $7.99 on Steam Resident Evil 2 – $7.99 on Steam Resident Evil 3 – $7.99 on Steam Resident Evil 7 Biohazard – $7.99 on Steam Yakuza: Like a Dragon – $7.99 on Steam Airborne Kingdom – $7.49 on Steam Assassin's Creed Syndicate – $7.49 on Steam The Wolf Among Us – $7.49 on Steam Amnesia: The Bunker – $7.49 on Steam Mini Motorways – $6.99 on Steam Age of History 3 – $6.99 on Steam Fabledom – $6.29 on Steam Trine 4: The Nightmare Prince – $5.99 on Steam Mafia: Definitive Edition – $5.99 on Steam Mafia II: Definitive Edition – $5.99 on Steam Resident Evil 6 – $4.99 on Steam Resident Evil 5 – $4.99 on Steam Resident Evil Revelations 2 – $4.99 on Steam Resident Evil 3 Nemesis (1999) – $4.99 on Steam Terra Memoria – $4.99 on Steam FOR HONOR – $4.49 on Steam Metro Exodus – $4.49 on Steam The Forest – $4.39 on Steam Mini Metro – $3.99 on Steam Songs of Conquest – $0 on Epic Store Rogue Waters – $0 on Epic Store Gravity Circuit – $0 on Steam DRM-free Specials The DRM-free store GOG has plenty of discounts to look over this weekend too. Here are some highlights: Trials of Mana - $14.99 on GOG SPORE Collection - $14.99 on GOG Stellaris - $12.49 on GOG FINAL FANTASY VIII - REMASTERED - $7.99 on GOG Final Fantasy IV (3D Remake) - $7.99 on GOG Final Fantasy III (3D Remake) - $7.99 on GOG FINAL FANTASY IX - $6.29 on GOG The Forgotten City - $6.25 on GOG Warlords Battlecry 3 - $5.99 on GOG Heroes of Might and Magic 3: Complete - $4.99 on GOG Heroes of Might and Magic 4: Complete - $4.99 on GOG SimCity 4 Deluxe Edition - $4.99 on GOG FINAL FANTASY VII - $4.79 on GOG Cultures 1+2 - $3.99 on GOG Outlast - $3.75 on GOG Dungeon Keeper 2 - $2.99 on GOG Theme Hospital - $2.99 on GOG Sid Meier's Alpha Centauri Planetary Pack - $2.99 on GOG Dungeon Keeper Gold - $2.99 on GOG Alba: A Wildlife Adventure - $2.55 on GOG Disciples 2 Gold - $1.99 on GOG Outcast - Second Contact - $1.49 on GOG Disciples: Sacred Lands Gold - $1.49 on GOG Port Royale 2 - $0.99 on GOG Keep in mind that availability and pricing for some deals could vary depending on the region. That's it for our pick of this weekend's PC game deals, and hopefully, some of you have enough self-restraint not to keep adding to your ever-growing backlogs. As always, there are an enormous number of other deals ready and waiting all over the interwebs, as well as on services you may already subscribe to if you comb through them, so keep your eyes open for those, and have a great weekend.
    • Exciting! It’s amazing how hearing Japanese can naturally enhance the perceived quality of any experience or product.
  • 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
      490
    2. 2
      PsYcHoKiLLa
      271
    3. 3
      Skyfrog
      75
    4. 4
      Steven P.
      68
    5. 5
      FloatingFatMan
      64
  • Tell a friend

    Love Neowin? Tell a friend!