Tsim cov ntaub ntawv EXE

EXE yog ib hom tsis muaj software ua tsis tau. Nws sau tag nrho cov txheej txheem kev pib los yog nruab kev pab cuam. Nws tuaj yeem ua tau daim ntawv thov tas nrho, los yog koom nrog nws.

Txoj kev tsim

Muaj ob txoj kev xaiv tsim cov ntaub ntawv EXE. Thawj yog kev siv qhov chaw rau lub cajmeem, thiab qhov thib ob yog kev siv cov neeg nruab nrab ntawm kev tshwj xeeb, nrog kev pabcuam ntawm "txawv txav" thiab tej pob khoom uas muab nruab rau hauv ib nias. Ntxiv rau cov piv txwv peb yuav xav txog ob qho kev xaiv.

Method 1: Nrig Zej Zos Studio

Xav txog tus txheej txheem tsim cov kev qhia yooj yooj yim raws li lub programming lus. "Visual C ++" thiab muab tso ua ke hauv lub Nroog Studio.

Download dawb Visual Studio Zej Zos los ntawm lub tsev kawm ntawv

  1. Khiav daim ntawv thov, mus rau ntawm cov ntawv qhia zaub mov "Cov Ntaub Ntawv"ces nias qhov khoom "Tsim"thiab tom qab ntawd ces sau rau hauv "Qhov project".
  2. Qhov rais qhib "Tsim ib qhov project", uas koj yuav tsum tau nyem ua ntej ntawm daim ntawv lo "Templates"thiab tom qab ntawd "Visual C ++". Tom ntej, xaiv "Win32 Console Application", teem lub npe thiab qhov chaw ntawm qhov kev tsim no. Los ntawm kev ua neej nyob, nws tau txais kev cawmdim hauv kev ua haujlwm ntawm lub Chaw Nrig Zej Zog, hauv daim nplaub tshev Kuv Cov Ntaub Ntawvtab sis nws muaj peev xwm xaiv lwm phau ntawv yog tias nws nyiam. Thaum sau tiav ntawm qhov chaw, nias "OK".
  3. Pib pib "Win32 daim ntawv thov configuration Wizard"nyob rau hauv uas peb cia li nias "Tom ntej".
  4. Nyob rau hauv lub qhov rais ntxiv peb txhais cov kev txwv ntawm daim ntawv thov. Hauv particular, peb xaiv "Console application"thiab nyob tom teb "Cov Kev Xaiv" Advanced " - "Kev Xa Mus Los"los ntawm unchecking lub thawv nrog "Precompiled Header".
  5. Qhov project uas nws tsim nyog yuav ntxiv qhov chaw rau kev cai sau ntawv pib. Ua li no rau hauv tab "Tshuaj Explorer" Nias lub pob nyem khawm ntawm lub tshuab "Cov Ntaub Ntawv Cov Ntaub Ntawv". Lub ntsiab lus teb cov lus qhia tshwm rau hauv uas peb nias ntawm "Ntxiv" thiab Tsim Khoom.
  6. Hauv lub qhov rais qhib "Ntxiv cov khoom tshiab" xaiv ib yam khoom "Cov ntaub ntawv C ++". Tom ntej no, peb muab lub npe ntawm cov ntaub ntawv thov lub npe yav tom ntej thiab nws qhov kev txuas ntxiv "C". Yog xav hloov daim nplaub tshev, nyem rau "Txheeb xyuas".
  7. Qhov browser qhib, nyob rau hauv uas peb qhia seb qhov chaw nyob thiab nias rau "Xaiv qhov sau".
  8. Yog li ntawd, ib lub tab tuaj nrog lub npe. "Source.s, nyob rau hauv uas muaj ib txheej thiab cov ntawv editing code.
  9. Tom ntej no, koj yuav tsum luam cov ntawv ntawm txoj cai thiab muab tso rau hauv qhov chaw uas pom hauv daim duab. Ua ib qho piv txwv, siv cov hauv qab no:
  10. #include
    #include

    rau cov menyuam kawm ntawv (int argc, char * argv []) {
    printf ("Nyob zoo, Lub ntiaj teb!");
    _getch ();
    rov qab 0;
    }

    Lus Cim: Cov cai saum toj no yog ib qho piv txwv xwb. Xwb, koj yuav tsum siv koj cov cai los tsim ib qho kev pab cuam hauv "Visual C ++".

  11. Txhim kho txoj haujlwm no "Pib Debugging" ntawm cov ntawv qhia zaub mov nco Debugging. Koj tuaj yeem nias qhov tseem ceeb "F5".
  12. Tom qab ntawd ib qho kev ceeb toom pops txog ceeb toom tias qhov project no dhau lawm. Ntawm no koj yuav tsum nias rau "Muaj".
  13. Thaum sau tiav ntawm qhov muab tso ua ke, daim ntawv thov qhia txog ib lub qhov rais hauv qab uas nws yuav sau "Nyob zoo, Lub ntiaj teb!".
  14. Cov ntaub ntawv tsim nyob rau hauv hom ntawv EXE yuav saib tau siv qhov rai Explorer hauv qhov project.

Txoj kev 2: Installers

Kom automate software installation txheej txheem, thiaj li muaj npe hu ua cov neeg muaj npe nrov. Nrog lawv cov kev pab, software yog tsim, lub ntsiab ntawm cov haujlwm uas yog los hloov cov txheej txheem ntawm software xa mus rau hauv computer. Xav txog cov txheej txheem ntawm kev tsim cov ntaub ntawv EXE ntawm tus piv txwv ntawm Smart Install Maker.

Download Smart Install Maker los ntawm lub xeem qhov chaw.

  1. Khiav qhov kev pab cuam thiab hauv tab "Cov ntaub ntawv" hloov npe lub npe rau yav tom ntej. Hauv teb Txuag Li nyem rau ntawm daim nplaub tshev los mus txiav txim rau qhov chaw uas cov ntaub ntawv tso tawm kom tau txais kev cawmdim.
  2. Explorer opens uas koj xaiv qhov chaw txaus siab thiab nias "Txuag".
  3. Mus rau lub tab "Cov Ntaub Ntawv"qhov twg koj xav tau ntxiv cov ntaub ntawv los ntawm cov pob yuav tsum tau sib sau ua ke. Qhov no yog los ntawm txhaj rau lub icon. «+» nyob rau hauv qab ntawm lub interface. Nws tseem ua tau ntxiv ib phau ntawv teev tag nrho, uas koj yuav tsum tau nyem rau ntawm lub icon, uas qhia tau hais tias muaj nplaub tshev nrog ib qho ntxiv.
  4. Tom ntej no, qhib qhov rai qhib qhov ncauj, qhov twg koj yuav tsum nias ntawm lub cim nyob rau hauv daim nplaub tshev.
  5. Nyob hauv qhov browser qhib, peb qhia qhov tsim nyog thov (nyob rau hauv peb cov ntaub ntawv, qhov no yog "Torrent", koj tuaj yeem muaj lwm yam) thiab nias rau "Qhib".
  6. Vim li ntawd, hauv qhov rais "Ntxiv kev nkag teb chaws" Ib daim ntawv teev lus qhia tias nws qhov chaw nyob. Cov kev xaiv ntxiv yog sab laug ntawm lub neej thiab nias "OK".
  7. Cov txheej txheem kev muab cov khoom qub tso rau hauv daim ntawv thov no tshwm sim thiab qhov kev nkag teb taw qhia tshwm hauv ib cheeb tsam tshwj xeeb ntawm cov software.
  8. Tom ntej, nias "Yuav tsum muaj" thiab ib lub pob qhib qhov twg koj xav tau kos lub npe ntawm cov haujlwm khiav lag luam. Peb tawm hauv cov zuam "Qhov rai XP" thiab tag nrho cov uas mus hauv qab nws. Hauv txhua lub teb, tawm ntawm qhov kev pom zoo.
  9. Ces qhib lub tab "Dialogues"los txhaj rau qhov sib thooj lub npe ntawm sab laug ntawm lub interface. Ntawm no peb tawm txhua yam los ntawm kev pheej hmoo. Hauv kev txiav txim siab mus rau qhov chaw nyob rau tom qab, koj tuaj yeem khij lub thawv "Hauv installation".

  10. Tom qab tag nrho cov chaw tiav, peb pib muab tso ua ke los txhaj rau lub icon nrog qhov xub.
  11. Cov txheej txheem teev muaj tshwm sim thiab nws cov xwm txheej tam sim no muaj nyob rau hauv lub qhov rais. Tom qab muab tso ua ke tiav, koj tuaj yeem kuaj cov pob tsim lossis kaw qhov rai tag nrho los txhaj qhov cov nyees khawm tsim nyog.
  12. Compiled software yuav pom muaj siv Windows Explorer hauv daim nplaub tshev uas tau teev cia thaum teeb.

Yog li, nyob rau hauv tsab xov xwm no, peb pom tias EXE ntaub ntawv raug tsim los siv cov software tshwj xeeb tsim kev lag luam, xws li Visual Studio Community, thiab cov chaw tsim tshwj xeeb, xws li Smart Install Maker.